You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/08/01 18:38:26 UTC

[jira] Updated: (MNG-3693) Updating project POM via project.setFile(..) changes project basedir, and project classpath when used as a dependency in a reactor

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

John Casey updated MNG-3693:
----------------------------

    Fix Version/s: 2.0.10

Initially reported steps to reproduce:

svn co https://svn.codehaus.org/picocontainer/java/2.x/trunk/pico
cd pico
mvn install 

> Updating project POM via project.setFile(..) changes project basedir, and project classpath when used as a dependency in a reactor
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3693
>                 URL: http://jira.codehaus.org/browse/MNG-3693
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM, Reactor and workspace
>    Affects Versions: 2.0.10
>            Reporter: John Casey
>             Fix For: 2.0.10
>
>
> When a reactor build contains an interproject dependency, and the dependency project's build switches the project's POM file, the dependent project may get the wrong classpath for the dependency project as long as it references ${basedir}/target/classes.
> For example, the shade plugin produces a dependency-reduced POM, and sets it on the project instance using project.setFile(..). This act reorients the project's basedir according to the new POM, which can return the wrong location for the build.outputDirectory (since this is now based on build.directory, which is now based on basedir).

-- 
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