[ 
http://jira.codehaus.org/browse/MWAR-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260379#action_260379
 ] 

Vedran Vidović commented on MWAR-251:
------------------------------------------

Thanks, I believed that if I don't add scope in dependencyManagement it is set 
to compile.

> 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ć
>            Assignee: Stephane Nicoll
>         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

        

Reply via email to