You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "deckrider (JIRA)" <ji...@codehaus.org> on 2009/02/25 15:20:19 UTC

[jira] Issue Comment Edited: (MASSEMBLY-393) Cannot Override dependencyManagement

    [ http://jira.codehaus.org/browse/MASSEMBLY-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166984#action_166984 ] 

deckrider edited comment on MASSEMBLY-393 at 2/25/09 8:19 AM:
--------------------------------------------------------------

FYI, using the attached example, the maven dependency plugin gets it right:

{noformat}
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:tree

[INFO] ------------------------------------------------------------------------
[INFO] Building my-app
[INFO]    task-segment: [org.apache.maven.plugins:maven-dependency-plugin:2.1:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] com.mycompany.app:my-app:jar:1.0-SNAPSHOT
[INFO] \- log4j:log4j:jar:1.2.14:compile
[INFO] ------------------------------------------------------------------------
{noformat}

And yet it still shows log4j-1.2.12.jar in the zip file:

{noformat}
unzip -l target/my-app-1.0-SNAPSHOT.zip
Archive:  target/my-app-1.0-SNAPSHOT.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-25-09 07:00   my-app-1.0-SNAPSHOT/
        0  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/
   358085  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/log4j-1.2.12.jar
     1701  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/my-app-1.0-SNAPSHOT.jar
 --------                   -------
   359786                   4 files
{noformat}

      was (Author: deckrider):
    FYI, using the attached example, the maven dependency plugin gets it right:

mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:tree

[INFO] ------------------------------------------------------------------------
[INFO] Building my-app
[INFO]    task-segment: [org.apache.maven.plugins:maven-dependency-plugin:2.1:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] com.mycompany.app:my-app:jar:1.0-SNAPSHOT
[INFO] \- log4j:log4j:jar:1.2.14:compile
[INFO] ------------------------------------------------------------------------

And yet it still shows log4j-1.2.12.jar in the zip file:

unzip -l target/my-app-1.0-SNAPSHOT.zip
Archive:  target/my-app-1.0-SNAPSHOT.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-25-09 07:00   my-app-1.0-SNAPSHOT/
        0  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/
   358085  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/log4j-1.2.12.jar
     1701  02-25-09 07:00   my-app-1.0-SNAPSHOT/foo/my-app-1.0-SNAPSHOT.jar
 --------                   -------
   359786                   4 files

  
> Cannot Override dependencyManagement
> ------------------------------------
>
>                 Key: MASSEMBLY-393
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-393
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-3
>         Environment: maven 2.0.9,2.0.10, windows xp, debian gnu linux, solaris 10
>            Reporter: deckrider
>         Attachments: my-app-pom-packaging.zip, my-app.zip
>
>
> This was not a problem in 2.2-beta-2.
> I've provided a test case.  It should produce a zip file containing log4j-1.2.14.jar but instead contains log4j-1.2.12.jar
> To run the test case:
> unzip my-app.zip
> cd my-app.zip
> mvn clean package
> This is critical for us, because we have a master parent pom where we keep all our versions in a dependencyManagement section, but on occasion we want to override them.  Upgrading from 2.2-beta-2 to 2.2-beta-3 broke that ability.

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