[ 
https://issues.apache.org/jira/browse/MRELEASE-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MRELEASE-567.
-----------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still applies, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> mvn release:prepare fails with missing artifacts when running assembly
> ----------------------------------------------------------------------
>
>                 Key: MRELEASE-567
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-567
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0
>         Environment: Perforce, jdk1.6.0_07, Maven 2.2.1
>            Reporter: Markus Muenkel
>            Priority: Major
>
> The issue has been discussed in the user mailing list, cf.
> http://mail-archives.apache.org/mod_mbox/maven-users/201005.mbox/%[email protected]%3e
> I'm releasing a Maven2 multi-module project. One of the modules is a POM
> project ("assembly project") that uses the maven-assembly-plugin in order to
> build an assembly (zip archive). The artifacts to be assembled are specified
> via dependencies in the POM. They point to modules contained in the same
> multi-module project. The project build is running fine and produces the 
> desired results.
> The project structure is as follows:
> commons
>  |
>  |-- commons.util
>  |
>  |-- commons.util.test
>  |
>  |-- commons.distribution
>  |   |
>  |   |-- assembly_descriptor.xml
> When running mvn release:prepare on this multi-module project, the build of
> the assembly project commons.distribution fails with the message that the 
> dependencies cannot be
> resolved. These dependencies are reported with the version that should be
> released, e.g. 0.0.3. Before running the goal, all dependency versions are 
> 0.0.3-SNAPSHOT.
> What seems to happen is that the snapshot version 0.0.3-SNAPSHOT is
> replaced by release version 0.0.3 through the release plugin and consequently 
> the assembly plugin tries to resolve the dependencies based on version
> 0.0.3 which however do not yet exist in the repository at that point.
> It was suggested in the mail thread that the reactor should be able to handle 
> the dependencies correctly and the following test was proposed:
> 1. mvn versions:set -DnewVersion=0.0.3-reltesting-SNAPSHOT
> 2. mvn clean verify
> 3. mvn versions:revert
> However this test fails in the same manner as described above. 
> The issue can be reproduced with any multi-module project of the structure
> T
> |--A
> |--X
> |--...
> where T is a top-level project and A is a child project of packaging type POM 
> that assembles module X (and possibly other modules
> as indicated by the ellipsis).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to