[ http://jira.codehaus.org/browse/MDEP-21?page=comments#action_64061 ]
Gwyn Evans commented on MDEP-21:
--------------------------------
Just in case you think this is worth doing....
Index: CopyDependenciesMojo.java
===================================================================
--- CopyDependenciesMojo.java (revision 1841)
+++ CopyDependenciesMojo.java (working copy)
@@ -60,7 +60,12 @@
for ( Iterator i = artifacts.iterator(); i.hasNext(); )
{
- copyArtifact( (DefaultArtifact) i.next(), this.stripVersion );
+ DefaultArtifact artifact = (DefaultArtifact) i.next();
+ String aScope = artifact.getScope();
+ // Gwyn: Only copy if not provided & not system
+ if (!Artifact.SCOPE_PROVIDED.equals( aScope ) &&
!Artifact.SCOPE_SYSTEM.equals( aScope )) {
+ copyArtifact( artifact, this.stripVersion );
+ }
}
}
> Option to not copy 'provided' scoped jars
> -----------------------------------------
>
> Key: MDEP-21
> URL: http://jira.codehaus.org/browse/MDEP-21
> Project: Maven 2.x Dependency Plugin
> Type: Wish
> Environment: Maven2
> Reporter: Gwyn Evans
>
>
> It would be useful if there were an option that could be set such that a
> 'scope=provided' jar would not be copied via copy-dependencies, but I can't
> see any way of setting such or otherwise excluding such a jar from the copy.
--
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