maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vedran Vidovi&#263; (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MWAR-251) parent project dependencyManagement for test submodule causes adding unnecessary libraries to war
Date Tue, 15 Mar 2011 13:03:22 GMT
parent project dependencyManagement for test submodule causes adding unnecessary libraries
to war
-------------------------------------------------------------------------------------------------

                 Key: MWAR-251
                 URL: http://jira.codehaus.org/browse/MWAR-251
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1-beta-1
            Reporter: Vedran Vidovi&#263;
         Attachments: ParentProject.zip

Unnecessary libraries are added in a war when we define transitive test dependencies of submodule
used in test scope of war project:
- create a parent project with a war submodule and a jar submodule (in attachment: ParentProject,
WarProject, TestProject)
- use depencencyManagement in parent pom.xml for setting versions of dependencies
- add a dependency to jar submodule (which is declared in parent pom.xml in dependencyManagement)
- add jar submodule as a dependency to war submodule in test scope
- call "mvn clean package" on parent project
--> dependencies of jar submodule will be copied to war's WEB-INF/lib directory (IT SHOULDN'T
HAPPEN)
- if we don't add dependency for jar submodule to dependencyManagement in parent pom.xml problem
doesn't appear

See attached zip of mvn project with two submodules.

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