Sebb created COMMONSSITE-87:
-------------------------------

             Summary: Commons Parent needs to run assembly plugin later
                 Key: COMMONSSITE-87
                 URL: https://issues.apache.org/jira/browse/COMMONSSITE-87
             Project: Commons All
          Issue Type: Bug
            Reporter: Sebb


The parent pom runs the assembly plugin as part of the 'release' profile.
The plugin is bound to the package phase.

However it does not work reliably because the assembly plugin generally needs 
to use resources created in the package phase, so needs to run last. 

Although the assembly plugin is defined last in the release profile, if a 
component pom needs to add other plugins to the package phase, these will run 
later.

The work-round in the past was to run the package phase twice, e.g.

mvn package deploy

[The second run of the assembly plugin will have access to the files created 
after its first run.]

A possible solution is to bind the assembly plugin to the verify phase.
This has been shown to work in the NET component pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to