Assembly does not include runtime-dependency if test-dependency with shorter path exists ----------------------------------------------------------------------------------------
Key: MASSEMBLY-558 URL: http://jira.codehaus.org/browse/MASSEMBLY-558 Project: Maven 2.x Assembly Plugin Issue Type: Bug 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 In my project there's an artifact, which can be resolved by 2 different paths (scopes in brackets) a) Project->projA(compile)->projB(compile)->myArtifact(runtime) b) Project->projB(test)->myArtifact(runtime) The relevant part of the distribution descriptor is thhe following <formats> <format>zip</format> </formats> <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> <useProjectArtifact>true</useProjectArtifact> <unpack>false</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> 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 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