commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Resolved] (COMMONSSITE-87) Commons Parent needs to run assembly plugin later
Date Sun, 17 Apr 2016 13:10:25 GMT


Sebb resolved COMMONSSITE-87.
       Resolution: Fixed
    Fix Version/s: 40

COMMONSSITE-87 - ensure assembly plugin runs after all package phase plugins


> Commons Parent needs to run assembly plugin later
> -------------------------------------------------
>                 Key: COMMONSSITE-87
>                 URL:
>             Project: Commons All
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 40
> 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

View raw message