Thursday 6 September 2012



Force maven 3.x dependency resolution to local repository jars - just as a temporary measure.
Tore hair out for an hour...


mvn package
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.foo.repositories:xyz-customer-inventory-repository-parent:2.0.52.1.3-SNAPSHOT (C:\Users\bazbaz\workspaces\abc\xyz-customer-inventory
-repository-parent\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.foo.common:foo-common-parent:pom:2.0.7 in http://repo.maven.apache.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at w
rong local POM @ line 2, column 10 -> [Help 2]

See: https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-ResolutionfromLocalRepository

Just delete all the _maven.repositories files from your local repository and the problems goes away!