Tuesday, November 12, 2013

Apache Maven - Non-resolvable parent POM

Facing following exception while creating a new Maven Project.

My Parent POM file had some invalid open tags which caused build failure, After I removed those tags, I receive following exception:

[ERROR]     Non-resolvable parent POM: Failure to find testapp-parent:pom:1.0-SNAPSHOT in http://mavenrepo.test.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of maven has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10 -> [Help 2]
[ERROR]  


Looks like to me that its still picking up the previous POM which had errors, probably because that was pushed to the local repository. Doing a clean install did not help me.

I looked into mt local repository for the file with .lastUpdated suffix,
testapp-parent-1.0-SNAPSHOT.pom.lastUpdated

I tried adding an empty tag <relativePath/> but it did not resolve the issue.
Also I deleted the project folder itself from my local repository, still din't help.

1 comment:

  1. Finally found out that it was the issue artifact defined in the POM. It happened due to a spelling mistake in the parent artifact name. I was able to build it after correcting it. Its always better to copy paste the names instead of typing :)

    ReplyDelete