[jira] Commented: (MDEP-114) Copy Dependencies does not have project dependency isolation
[ http://jira.codehaus.org/browse/MDEP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107881 ] Brian Fox commented on MDEP-114: I don't see any possible why that running from the parent would include _more_ dependencies than in a module. The only way this is happening is if maven is recursing and you are copying to an absolute path thus the effect is each module copies its own dependencies to the same place. You can use the dependency:copy and list only the modules you want and there are excludes/includes options to help filter the copy-dependencies (including transitivity) > Copy Dependencies does not have project dependency isolation > > > Key: MDEP-114 > URL: http://jira.codehaus.org/browse/MDEP-114 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Components: copy-dependencies >Affects Versions: 2.0-alpha-4 >Reporter: Cameron Jones >Assignee: Brian Fox > > In a multi-module project the copy-dependencies goal gets the list of > dependencies from the project and not the individual modules. This has the > effect that if the task is run from a module it has only that module's > dependencies copied, however if run from the parent the entire project's > dependencies are copied. -- 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
[jira] Commented: (MDEP-114) Copy Dependencies does not have project dependency isolation
[ http://jira.codehaus.org/browse/MDEP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107873 ] Cameron Jones commented on MDEP-114: The problem i have is that i need to run builds from the parent or the module and get the same result. In my environment the developers use the full build from the parent to verify a checkin whereas the build machine builds each module as a separate task. The goal i'm trying to achieve is to create a client plugin which contains a web service stub module and it's required dependencies. Since the client needs to be as small as possible i need to make sure that only the absolute required dependencies are included in it's packaging. If run from the parent this is not the case and the entire project's dependencies are included, even unrelated modules. I've managed to work around this by using the assembly plugin instead and adding a new module for other reasons...in the case of that plugin it looks at the explicitly defined dependencies on a pom and only includes those. There's also other options for excluding transitive etc. I think the assembly plugin is a bit heavy and that the dependency plugin would be the ideal place for this kind of functionality. > Copy Dependencies does not have project dependency isolation > > > Key: MDEP-114 > URL: http://jira.codehaus.org/browse/MDEP-114 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Components: copy-dependencies >Affects Versions: 2.0-alpha-4 >Reporter: Cameron Jones >Assignee: Brian Fox > > In a multi-module project the copy-dependencies goal gets the list of > dependencies from the project and not the individual modules. This has the > effect that if the task is run from a module it has only that module's > dependencies copied, however if run from the parent the entire project's > dependencies are copied. -- 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
[jira] Commented: (MDEP-114) Copy Dependencies does not have project dependency isolation
[ http://jira.codehaus.org/browse/MDEP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107871 ] Brian Fox commented on MDEP-114: Not sure i follow. that mojo gets the dependency list from the maven interpolated project. A parent should have less dependencies than the others because it will not include the ones from the child modules. However, running mvn from the parent will cause maven to naturally iterate through all children. If you don't want that, then you need to use the -N flag. > Copy Dependencies does not have project dependency isolation > > > Key: MDEP-114 > URL: http://jira.codehaus.org/browse/MDEP-114 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Components: copy-dependencies >Affects Versions: 2.0-alpha-4 >Reporter: Cameron Jones >Assignee: Brian Fox > > In a multi-module project the copy-dependencies goal gets the list of > dependencies from the project and not the individual modules. This has the > effect that if the task is run from a module it has only that module's > dependencies copied, however if run from the parent the entire project's > dependencies are copied. -- 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