[ 
https://jira.codehaus.org/browse/MASSEMBLY-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold updated MASSEMBLY-558:
-----------------------------------------

    Fix Version/s: 2.5.2

> Assembly does not include runtime-dependency if test-dependency with shorter 
> path exists
> ----------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-558
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-558
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: dependencySet
>    Affects Versions: 2.2
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Java version: 1.5.0_12, vendor: Sun Microsystems Inc.
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
>            Reporter: Frank Jakop
>             Fix For: 2.5.2
>
>
> In my project there's an artifact, which can be resolved by 2 different paths 
> (scopes in brackets)
> {noformat}
> a) Project->projA(compile)->projB(compile)->myArtifact(runtime)
> b) Project->projB(test)->myArtifact(runtime)
> {noformat}
> The relevant part of the distribution descriptor is the following
> {code:xml}
> <formats>
>   <format>zip</format>
> </formats>
> <dependencySets>
>   <dependencySet>
>     <outputDirectory>/lib</outputDirectory>
>     <useProjectArtifact>true</useProjectArtifact>
>     <unpack>false</unpack>
>     <scope>runtime</scope>
>   </dependencySet>
> </dependencySets>
> {code}
> So when I run assembly:assembly I wonder, why myArtifact isn't included in my 
> zip. I now think, that assembly favours the shorter path b) despite the 
> test-scope over the longer but correct path a).
> Since test-scope dependencies should have nothing to do with distribution (if 
> not included explicitly) myArtifact should have be included in my zip.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to