WebLab web service cannot compile
When the $HOME/.m2/repositories directory does not exist, compilation of any WebLab web service will fail. Error message from "mvn clean package" is:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.kaisquare.ssipo.osia.weblab.service:AuthorFilter:1.0 (/Users/yeefan/WebLab/services/Dummy/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.ow2.weblab.webservices:parent:pom:1.2.5 in WebLab OW2 (http://maven.ow2.org/maven2/) and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
My pom.xml contained the following:
<parent>
<groupId>org.ow2.weblab.webservices</groupId>
<artifactId>parent</artifactId>
<version>1.2.5</version>
</parent>
...
<repositories>
<repository>
<id>WebLab OW2</id>
<name>WebLab OW2 Maven repository</name>
<url>http://maven.ow2.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Observation:
At some recent time any URL under http://maven.ow2.org/maven2/ gets redirected to http://repository.ow2.org/nexus/content/repositories/ow2-legacy/ . But under the new URL, the directory org/ow2/weblab/services/parent/1.2.5 does not exist, although this directory previously existed at the old URL.