You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2008/09/09 16:13:48 UTC

[jira] Updated: (CONTINUUM-1874) continuum:add-maven-two-project doesn't work

     [ http://jira.codehaus.org/browse/CONTINUUM-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated CONTINUUM-1874:
------------------------------------

         Priority: Blocker  (was: Major)
    Fix Version/s: 1.2

> continuum:add-maven-two-project doesn't work
> --------------------------------------------
>
>                 Key: CONTINUUM-1874
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1874
>             Project: Continuum
>          Issue Type: Bug
>          Components: Maven Plugin
>    Affects Versions: 1.2
>         Environment: JDK1.5, Maven 2.0.9, Continuum 1.2
>            Reporter: Napoleon Esmundo C. Ramirez
>            Priority: Blocker
>             Fix For: 1.2
>
>
> When doing a:
> {noformat}
> $ mvn org.apache.continuum:continuum-maven-plugin:1.2:add-maven-two-project -Durl=http://localhost:9090/xmlrpc -Dusername=admin -Dpassword=******
> {noformat}
> I get something like this:
> {noformat}
> [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] ------------------------------------------------------------------------
> $
> {noformat}
> In AddMavenTwoProject.java, it defines the pom url as only the containing directory of the pom.xml:
> {code:java}
> /**
>   * POM Url.
>   *
>   * @parameter expression="${projectUrl}" default-value="${project.scm.url}"
>   * @required
>   */
> private String projectUrl;
> {code}
> I tried appending a {{/pom.xml}} in the {{default-value}}, and I was able to add the project then.
> {code:java}
> /**
>   * POM Url.
>   *
>   * @parameter expression="${projectUrl}" default-value="${project.scm.url}/pom.xml"
>   * @required
>   */
> private String projectUrl;
> {code}
> {noformat}
> $ 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] ------------------------------------------------------------------------
> $
> {noformat}
> At first, I thought it fixed the problem.  But when I tried adding a multi-module project, e.g.:
> {noformat}
> multimodule-parent/pom.xml
>   | 
>   +--submodule-one/pom.xml
>   | 
>   +--submodule-two/pom.xml
>   | 
>   +--submodule-three/pom.xml
> {noformat}
> Continuum added the project defined by {{multimodule-parent/pom.xml}} four times.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira