[jira] Commented: (MDEP-128) Support ability to specify multiple includeScope parameters

2010-08-18 Thread Tamer Dakhlallah (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=232398#action_232398
 ] 

Tamer Dakhlallah commented on MDEP-128:
---

From my experience, if you don't want any test or provided dependencies, then 
just include runtime scope dependencies.  You don't need to exclude anything 
(contrary to what Brian says) because runtime scope doesn't give you any 
provided dependencies to begin with.

In summary:
Runtime scope gives you runtime and compile dependencies.
Compile scope gives you compile, provided, and system dependencies.
Test (default) scope gives you all dependencies.
Provided scope just gives you provided dependencies.
System scope just gives you system dependencies.

I agree with Matthew in that this needs to be documented somewhere..

 Support ability to specify multiple includeScope parameters
 -

 Key: MDEP-128
 URL: http://jira.codehaus.org/browse/MDEP-128
 Project: Maven 2.x Dependency Plugin
  Issue Type: Improvement
Affects Versions: 2.0-alpha-4
Reporter: Bryan Stopp
Assignee: Brian Fox

 You can only configure the plugin with either one includeScope or one 
 excludeScope. When executing the plugin to copy dependencies with the 
 following configuration:
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
   execution
  idcopy-dependencies/id
  phasevalidate/phase
  goals
 goalcopy-dependencies/goal
  /goals
   /execution
/executions
configuration
   outputDirectory/src/main/webapp/WEB-INF/lib/outputDirectory 
   overWriteReleasesfalse/overWriteReleases 
   overWriteIfNewertrue/overWriteIfNewer 
   overWriteSnapshotstrue/overWriteSnapshots
   excludeScopeprovided/excludeScope
/configuration
 /plugin
 It does exclude the provided scope, but it includes the test scope [easymock, 
 dbunit,  and junit appear in the output directory]. I tried to correct this 
 problem by replacing the excludeScope parameter with two includeScope 
 parameters, one for compile one for runtime, but only the first parameter was 
 actually used. 
 I also tried to exclude test but got an error, something like, Can't exclude 
 tests as that would exclude everything!. 
 The goal is to be able to recreate the default copy functionality that is 
 accomplished when executing a mvn package command, but be able to specify a 
 maven-dependency-plugin configuration. When specifying this configuration, it 
 overrides the default settings throughout the entire build life-cycle (as it 
 should). But it is impossible to configure the plugin in the exact same was 
 as the default settings.
 This is needed to support copying dependencies into the WEB-INF/lib folder 
 within Eclipse workspaces, to support embedded application-server deployment. 

-- 
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-128) Support ability to specify multiple includeScope parameters

2010-03-05 Thread Ivan (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=212826#action_212826
 ] 

Ivan commented on MDEP-128:
---

I hope this issue is still watched, so I have voted for it.

Currently I need to include compile and exclude both provided and system 
dependencies and I cannot do it rather than excluding system dependencies with 
excludeArtifactIds and similar tags. This is not a good idea if I have dozens 
of them.

Btw, seems like provided and system scopes are independent (one doesn't 
comprise another).

 Support ability to specify multiple includeScope parameters
 -

 Key: MDEP-128
 URL: http://jira.codehaus.org/browse/MDEP-128
 Project: Maven 2.x Dependency Plugin
  Issue Type: Improvement
Affects Versions: 2.0-alpha-4
Reporter: Bryan Stopp
Assignee: Brian Fox

 You can only configure the plugin with either one includeScope or one 
 excludeScope. When executing the plugin to copy dependencies with the 
 following configuration:
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
   execution
  idcopy-dependencies/id
  phasevalidate/phase
  goals
 goalcopy-dependencies/goal
  /goals
   /execution
/executions
configuration
   outputDirectory/src/main/webapp/WEB-INF/lib/outputDirectory 
   overWriteReleasesfalse/overWriteReleases 
   overWriteIfNewertrue/overWriteIfNewer 
   overWriteSnapshotstrue/overWriteSnapshots
   excludeScopeprovided/excludeScope
/configuration
 /plugin
 It does exclude the provided scope, but it includes the test scope [easymock, 
 dbunit,  and junit appear in the output directory]. I tried to correct this 
 problem by replacing the excludeScope parameter with two includeScope 
 parameters, one for compile one for runtime, but only the first parameter was 
 actually used. 
 I also tried to exclude test but got an error, something like, Can't exclude 
 tests as that would exclude everything!. 
 The goal is to be able to recreate the default copy functionality that is 
 accomplished when executing a mvn package command, but be able to specify a 
 maven-dependency-plugin configuration. When specifying this configuration, it 
 overrides the default settings throughout the entire build life-cycle (as it 
 should). But it is impossible to configure the plugin in the exact same was 
 as the default settings.
 This is needed to support copying dependencies into the WEB-INF/lib folder 
 within Eclipse workspaces, to support embedded application-server deployment. 

-- 
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-128) Support ability to specify multiple includeScope parameters

2008-12-18 Thread Matthew Lieder (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=158605#action_158605
 ] 

Matthew Lieder commented on MDEP-128:
-

While that makes sense, it is still counter-intuitive and I believe it would 
help a lot of people if what you just said could be documented somewhere 
(ideally with some notes added to the includeScope/excludeScope attributes on 
the goal).

 Support ability to specify multiple includeScope parameters
 -

 Key: MDEP-128
 URL: http://jira.codehaus.org/browse/MDEP-128
 Project: Maven 2.x Dependency Plugin
  Issue Type: Improvement
Affects Versions: 2.0-alpha-4
Reporter: Bryan Stopp
Assignee: Brian Fox

 You can only configure the plugin with either one includeScope or one 
 excludeScope. When executing the plugin to copy dependencies with the 
 following configuration:
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
   execution
  idcopy-dependencies/id
  phasevalidate/phase
  goals
 goalcopy-dependencies/goal
  /goals
   /execution
/executions
configuration
   outputDirectory/src/main/webapp/WEB-INF/lib/outputDirectory 
   overWriteReleasesfalse/overWriteReleases 
   overWriteIfNewertrue/overWriteIfNewer 
   overWriteSnapshotstrue/overWriteSnapshots
   excludeScopeprovided/excludeScope
/configuration
 /plugin
 It does exclude the provided scope, but it includes the test scope [easymock, 
 dbunit,  and junit appear in the output directory]. I tried to correct this 
 problem by replacing the excludeScope parameter with two includeScope 
 parameters, one for compile one for runtime, but only the first parameter was 
 actually used. 
 I also tried to exclude test but got an error, something like, Can't exclude 
 tests as that would exclude everything!. 
 The goal is to be able to recreate the default copy functionality that is 
 accomplished when executing a mvn package command, but be able to specify a 
 maven-dependency-plugin configuration. When specifying this configuration, it 
 overrides the default settings throughout the entire build life-cycle (as it 
 should). But it is impossible to configure the plugin in the exact same was 
 as the default settings.
 This is needed to support copying dependencies into the WEB-INF/lib folder 
 within Eclipse workspaces, to support embedded application-server deployment. 

-- 
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-128) Support ability to specify multiple includeScope parameters

2007-12-31 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118277
 ] 

Brian Fox commented on MDEP-128:


You shouldn't ever need to include or exclude two scopes at the same time 
because they are comprised of each other. The default is to include test scope, 
which includes everything. If you don't want any test dependencies or provided 
dependencies, then include runtime and exclude provided.

The scopes being interpreted are the scopes as maven sees them, not as 
specified in the pom. So the test scope includes everything, runtime includes 
compile but not provided etc.

 Support ability to specify multiple includeScope parameters
 -

 Key: MDEP-128
 URL: http://jira.codehaus.org/browse/MDEP-128
 Project: Maven 2.x Dependency Plugin
  Issue Type: Improvement
Affects Versions: 2.0-alpha-4
Reporter: Bryan Stopp
Assignee: Brian Fox

 You can only configure the plugin with either one includeScope or one 
 excludeScope. When executing the plugin to copy dependencies with the 
 following configuration:
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
   execution
  idcopy-dependencies/id
  phasevalidate/phase
  goals
 goalcopy-dependencies/goal
  /goals
   /execution
/executions
configuration
   outputDirectory/src/main/webapp/WEB-INF/lib/outputDirectory 
   overWriteReleasesfalse/overWriteReleases 
   overWriteIfNewertrue/overWriteIfNewer 
   overWriteSnapshotstrue/overWriteSnapshots
   excludeScopeprovided/excludeScope
/configuration
 /plugin
 It does exclude the provided scope, but it includes the test scope [easymock, 
 dbunit,  and junit appear in the output directory]. I tried to correct this 
 problem by replacing the excludeScope parameter with two includeScope 
 parameters, one for compile one for runtime, but only the first parameter was 
 actually used. 
 I also tried to exclude test but got an error, something like, Can't exclude 
 tests as that would exclude everything!. 
 The goal is to be able to recreate the default copy functionality that is 
 accomplished when executing a mvn package command, but be able to specify a 
 maven-dependency-plugin configuration. When specifying this configuration, it 
 overrides the default settings throughout the entire build life-cycle (as it 
 should). But it is impossible to configure the plugin in the exact same was 
 as the default settings.
 This is needed to support copying dependencies into the WEB-INF/lib folder 
 within Eclipse workspaces, to support embedded application-server deployment. 

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