ScopeArtifactFilter seems not to be able to retrieve artifacts with scope
provided
----------------------------------------------------------------------------------
Key: MNG-3246
URL: http://jira.codehaus.org/browse/MNG-3246
Project: Maven 2
Issue Type: Bug
Components: Artifacts and Repositories
Affects Versions: 2.0.7, 2.0.6, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0
Reporter: Eric Hartmann
Attachments: scopeartifactfilter.patch
I'm using the maven ant tasks from a project that cannot be mavenized right now.
I'm trying to retrieve the artifacts with scope "provided". The ant task use
the ScopeArtifactFilter to retrieve those artifacts. Unfortunately the
constructor miss the use of such artifacts.
Here is a small patch allowing the use of scope provided and system.
This filter does not allow the use of special scopes : I'm using a scope
"endorsed" to identify which jar should be in the endorsed directory. As this
filter does not compare the scope of artifact with the one used in the
constructor, it may be usefull to store the string and in the include function
to test the equality in the last else instead of returning always true. But it
may not be intended to be used as this ?
--
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