You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eric Lewis (JIRA)" <ji...@codehaus.org> on 2009/10/13 13:32:26 UTC
[jira] Created: (MASSEMBLY-447) Redefined scope is ignored for
dependencies
Redefined scope is ignored for dependencies
-------------------------------------------
Key: MASSEMBLY-447
URL: http://jira.codehaus.org/browse/MASSEMBLY-447
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.2-beta-4
Reporter: Eric Lewis
I have a dependency which is defined with <scope>test</scope>.
In another project, however, it is redefined to <scope>runtime</scope>.
Now, when I get the runtime dependencies with
<dependencySet>
<useStrictFiltering>true</useStrictFiltering>
<useProjectArtifact>false</useProjectArtifact>
<scope>runtime</scope>
<!-- Don't distribute sources -->
<excludes>
<exclude>*:sources</exclude>
</excludes>
</dependencySet>
the dependency is not included.
--
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] Closed: (MASSEMBLY-447) Redefined scope is ignored for
dependencies
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MASSEMBLY-447.
--------------------------------
Resolution: Won't Fix
Assignee: John Casey
The nearest definition of a dependency's scope always wins in Maven. This is not an issue with the assembly plugin.
> Redefined scope is ignored for dependencies
> -------------------------------------------
>
> Key: MASSEMBLY-447
> URL: http://jira.codehaus.org/browse/MASSEMBLY-447
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-4
> Reporter: Eric Lewis
> Assignee: John Casey
>
> I have a dependency which is defined with <scope>test</scope>.
> In another project, however, it is redefined to <scope>runtime</scope>.
> Now, when I get the runtime dependencies with
> <dependencySet>
> <useStrictFiltering>true</useStrictFiltering>
> <useProjectArtifact>false</useProjectArtifact>
> <scope>runtime</scope>
> <!-- Don't distribute sources -->
> <excludes>
> <exclude>*:sources</exclude>
> </excludes>
> </dependencySet>
> the dependency is not included.
--
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