You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/09/25 19:07:45 UTC
[jira] Commented: (MASSEMBLY-94) moduleSet/binaries doesn't work
with assembly:single bound to the build lifecycle
[ http://jira.codehaus.org/browse/MASSEMBLY-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148997#action_148997 ]
John Casey commented on MASSEMBLY-94:
-------------------------------------
The root problem here is that Maven builds a whole project at a time when executing a reactor build. This is only a problem because of the way in which project sorting occurs, where parent projects are built first, on the assumption that they need to be complete in order to be referenced by child project builds. This means that an assembly which is bound to the parent project, and which defines a moduleSet with a binaries section, CANNOT SUCCEED under the current reactor design. In this scenario, as the parent project is built it encounters the assembly step, and attempts to gather the binary artifacts for the applicable (child) modules. Since these children haven't been built yet, they don't have binary artifacts, and the assembly fails.
The only workaround for now is to keep the assembly step separate from the main build, and execute the following:
{noformat}
mvn clean package assembly:assembly
{noformat}
or similar. Using assembly:assembly has the advantage of executing as an aggregator, meaning it will use only the current root project for configuration, and will execute only once for the entire reactor, as opposed to normal mojos like assembly:single that will attempt to execute for each project in the reactor.
This is an ugly, ugly design issue that is currently without a clear solution in the development community.
> moduleSet/binaries doesn't work with assembly:single bound to the build lifecycle
> ---------------------------------------------------------------------------------
>
> Key: MASSEMBLY-94
> URL: http://jira.codehaus.org/browse/MASSEMBLY-94
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Edwin Punzalan
> Priority: Critical
> Fix For: 2.3-beta-1
>
>
> *Title was:* "reactorProjector projects have null Artifact files when using assembly:assembly"
> So the work-around is to use "mvn package assembly:assembly"... also, assembly:attached doesn't have this problem.
--
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