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]   The project (C:\Users\bazbaz\workspaces\abc\xyz-customer-inventory
-repository-parent\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find in 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]


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