Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.2
-
None
-
JDK1.5, Maven 2.0.9, Continuum 1.2
Description
When doing a:
$ mvn org.apache.continuum:continuum-maven-plugin:1.2:add-maven-two-project -Durl=http://localhost:9090/xmlrpc -Dusername=admin -Dpassword=******
I get something like this:
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building quickstart [INFO] task-segment: [org.apache.continuum:continuum-maven-plugin:1.2:add-maven-two-project] [INFO] ------------------------------------------------------------------------ [INFO] [continuum:add-maven-two-project] [ERROR] fail to add mavenTwo project add.project.project.building.error [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] fail to add mavenTwo project add.project.project.building.error [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Tue Sep 09 20:55:57 PHT 2008 [INFO] Final Memory: 10M/83M [INFO] ------------------------------------------------------------------------ $
In AddMavenTwoProject.java, it defines the pom url as only the containing directory of the pom.xml:
/** * POM Url. * * @parameter expression="${projectUrl}" default-value="${project.scm.url}" * @required */ private String projectUrl;
I tried appending a /pom.xml in the default-value, and I was able to add the project then.
/** * POM Url. * * @parameter expression="${projectUrl}" default-value="${project.scm.url}/pom.xml" * @required */ private String projectUrl;
$ mvn org.apache.continuum:continuum-maven-plugin:1.2:add-maven-two-project -Durl=http://localhost:9090/xmlrpc -Dusername=admin -Dpassword=****** [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building quickstart [INFO] task-segment: [org.apache.continuum:continuum-maven-plugin:1.2:add-maven-two-project] [INFO] ------------------------------------------------------------------------ [INFO] [continuum:add-maven-two-project] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Tue Sep 09 21:31:43 PHT 2008 [INFO] Final Memory: 10M/82M [INFO] ------------------------------------------------------------------------ $
At first, I thought it fixed the problem. But when I tried adding a multi-module project, e.g.:
multimodule-parent/pom.xml | +--submodule-one/pom.xml | +--submodule-two/pom.xml | +--submodule-three/pom.xml
Continuum added the project defined by multimodule-parent/pom.xml four times.