continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Venisse (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (CONTINUUM-1874) continuum:add-maven-two-project doesn't work
Date Fri, 26 Sep 2008 04:33:45 GMT

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

Emmanuel Venisse closed CONTINUUM-1874.
---------------------------------------

      Assignee: Emmanuel Venisse
    Resolution: Fixed

Fixed.
Committed in r.699173

I fixed the plugin so you'll can run it like you already do it and I add a pomFilename parameter
that is defaulted to 'pom.xml'

> 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
>            Assignee: Emmanuel Venisse
>            Priority: Blocker
>             Fix For: 1.2.1
>
>
> 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

        

Mime
View raw message