[ https://jira.codehaus.org/browse/MASSEMBLY-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=342775#comment-342775 ]
Christoph commented on MASSEMBLY-669: ------------------------------------- In the first example each artifact has the same version. Only dependencies are specified as ranges (never mind wrong syntax). I would say, this is a reactor. At least maven tells me [INFO] Reactor Build Order: [INFO] [INFO] reactor [INFO] one [INFO] two [INFO] three {{mvn compile}} works and resolves each dependency within the reactor. {{mvn install}} from the root project will also work, because the reactor sorts the order and runs, compile, package, install on each project in the correct order. But any dependency resolution in the package phase happens against the repository, not against the reactor. This is also the case for {{mvn dependency:list}}. Ranges are resolved against the repository not the reactor. So this might be a bug or feature of the dependency resolution. See for example MDEP-410 > dependencySet does not resolve transient dependencies in reactor build > ---------------------------------------------------------------------- > > Key: MASSEMBLY-669 > URL: https://jira.codehaus.org/browse/MASSEMBLY-669 > Project: Maven Assembly Plugin > Issue Type: Bug > Components: dependencySet > Affects Versions: 2.2-beta-5, 2.4 > Environment: linux > Reporter: Christoph > Attachments: assembly_bug.tar.gz, assembly_bug_v2.tar.gz > > > using an assembly descriptor with a dependencySet will fail to resolve > transient dependencies that are build in the same reactor. > having artifacts one, two, three. With a dependeny chain: three -> two -> one > Artifact three runs an assembly during package phase. It succeeds in finding > the artifact two in the reactor. But the transient dependency pointing to > artifact one can't be resolved. > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-assembly) on > project three: Failed to create assembly: Unable to resolve dependencies for > assembly 'foo': Failed to resolve dependencies for assembly: No versions are > present in the repository for the artifact with a range [0,] > [ERROR] de.gsi.cs.co.maven.assembly_bug:one:jar:null > A sample project structure is attached. -- This message was sent by Atlassian JIRA (v6.1.6#6162)