[
https://jira.codehaus.org/browse/MASSEMBLY-669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Heinz Marbaise closed MASSEMBLY-669.
-----------------------------------------
Resolution: Not A Bug
Unfortunately i have to say that one very important thing about your
assumptions is incorrect:
The senctence:
{{using an assembly descriptor with a dependencySet will fail to resolve
transient dependencies that are build in the same reactor}}
These artifacts are not build in the same reactor. This is only an aggregator
and *not* an multi-module build.
Apart from that if you take a look at the error message:
{{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,]}}
This shows that the build is trying to solve the artifacts from the repository
as a result of not finding them within the current reactor.
An indicator for a multi-module build is the verison number which is identical
for all modules etc. within the same folder structure (parent, modules etc.)
which is *not* the case with your example. You have the same parent but the
versions are different. The conclusion of this is that you neither have an
aggregator nor an multi-module buld.
You can find it out via first doing:
{{mvn install -N} from the root of your project.
{{mvn install}} from module one.
{{mvn install}} from module two and finally:
{{mvn package}} from module three....or after installing module two going to
the root and do {{mvn clean package}} which will works.
So the result of this is: It's not bug, cause you are not building in the same
reactor.
> 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)