maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Issue Comment Edited: (MNG-4894) Profile is ignored for dependencies
Date Thu, 11 Nov 2010 17:09:04 GMT

    [ http://jira.codehaus.org/browse/MNG-4894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242814#action_242814
] 

Benjamin Bentmann edited comment on MNG-4894 at 11/11/10 11:08 AM:
-------------------------------------------------------------------

This is a duplicate of MNG-1388, profiles activated by id via settings or CLI aren't considered
for POMs of dependencies. Maven 3.0 is just consistent in this regard when building a module
within the reactor or in isolation whereas Maven 2.x is not. I.e. with Maven 2.x, cd into
the JAR module and install it, then cd into the WAR module and run "mvn clean package -P p2"
from there and observe that the generated WAR also consists only of three JARs.

      was (Author: bentmann):
    This is a duplicate of MNG-1388, profiles activated by id via settings or CLI aren't considered
for POMs of dependencies. Maven 3.0 is just consistent in this regard when building a module
within the reactor or in isolation whereas Maven 2.x is not. I.e. with Maven 2.x, cd into
the JAR module and install it, then cd into the WAR module and run "mvn clean package" from
there and observe that the generated WAR also consists only of three JARs.
  
> Profile is ignored for dependencies
> -----------------------------------
>
>                 Key: MNG-4894
>                 URL: http://jira.codehaus.org/browse/MNG-4894
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0
>         Environment: Ubuntu 10.10
> Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
> Java version: 1.6.0_22
> OS name: "linux" version: "2.6.35-23-generic" arch: "amd64" Family: "unix"
>            Reporter: Marcel
>            Assignee: Benjamin Bentmann
>         Attachments: profiles.zip
>
>
> I have a war module with a dependency on a jar module.
> In the jar module there are a number of dependencies defined in profiles.
> When packaging the war module with one of these profiles, the dependencies for that profile
are not included in the war archive.
> The attached file contains an example for this situation.
> In the parent module I executed the following statements:
> {code}
> mvn install -N
> mvn clean install -P p2
> {code}
> In the resulting war file I miss all the transitive dependencies defined in the profile
'p2'.
> The following jar files can be found when running the commands with Maven 3:
> {code}
> WEB-INF/lib/postgresql-8.4-701.jdbc4.jar
> WEB-INF/lib/commons-lang-2.4.jar
> WEB-INF/lib/jar-1.0.jar
> {code}
> When running the commands with Maven 2.2.1 I get:
> {code}
> WEB-INF/lib/xml-apis-1.0.b2.jar
> WEB-INF/lib/commons-collections-2.1.jar
> WEB-INF/lib/commons-digester-1.6.jar
> WEB-INF/lib/postgresql-8.4-701.jdbc4.jar
> WEB-INF/lib/commons-validator-1.2.0.jar
> WEB-INF/lib/commons-lang-2.4.jar
> WEB-INF/lib/commons-logging-1.0.4.jar
> WEB-INF/lib/jar-1.0.jar
> WEB-INF/lib/oro-2.0.8.jar
> {code}

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