I just would like to share the Maven's tip that I learn today from Marshall.
When I try to run "uimaj-distr>mvn assembly:assembly" for the project "uimaj-distr", I got the following error: ---------------------------------- Maven message ------------------------------------- D:\apache-uima\ws-apache-uima\uimaj-distr>mvn assembly:assembly [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.apache.uima ArtifactId: uimaj Version: 2.3.0-incubating-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.uima:uimaj:pom:2.3.0-incubating-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) --------------------------------------End of message --------------------------------------- The following description is the explanation of the error and it will fix the above problem. ---------------------------------- Maven Tips ------------------------------------- Every POM in our setup specifies the parent " org.apache.uima:uimaj:pom:2.3.0-incubating-SNAPSHOT" For instance, in uimaj-distr, the POM has: <parent> <groupId>org.apache.uima</groupId> <artifactId>uimaj</artifactId> <version>2.3.0-incubating-SNAPSHOT</version> </parent> To fix this, cd ..\uimaj mvn -N install (of course you have to have the uimaj project checked out.) The -N parameter just installs the uimaj POM into your local repository, but does *not* build all the <modules> contained within it. ---------------------------------- End of Maven Tips ------------------------------------- -- Tong
