[
https://issues.apache.org/jira/browse/KNOX-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191168#comment-16191168
]
Colm O hEigeartaigh commented on KNOX-766:
------------------------------------------
How intermittent are the failures? I can't reproduce with "mvn clean package"
(Maven 3.5.0)
> Intermittent Maven package goal fails due to assembly plugin
> ------------------------------------------------------------
>
> Key: KNOX-766
> URL: https://issues.apache.org/jira/browse/KNOX-766
> Project: Apache Knox
> Issue Type: Bug
> Components: Build
> Affects Versions: 0.10.0
> Reporter: John McParland
> Priority: Minor
> Labels: build
> Fix For: 0.14.0
>
>
> When executing a maven build which includes the "package" goal, the
> maven-assembly-plugin:single goal fails for some modules;
> {code}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building gateway-demo-ldap-launcher 0.10.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> ...
> [INFO] --- maven-assembly-plugin:2.4:single (server-launcher) @
> gateway-demo-ldap-launcher ---
> [WARNING] Artifact:
> org.apache.knox:gateway-demo-ldap-launcher:jar:0.10.0-SNAPSHOT references the
> same file as the assembly destination file. Moving it to a temporary location
> for inclusion.
> [INFO] Building jar:
> /home/mcparlandj/git/knox/gateway-demo-ldap-launcher/target/gateway-demo-ldap-launcher-0.10.0-SNAPSHOT.jar
> [WARNING] Configuration options: 'appendAssemblyId' is set to false, and
> 'classifier' is missing.
> Instead of attaching the assembly file:
> /home/mcparlandj/git/knox/gateway-demo-ldap-launcher/target/gateway-demo-ldap-launcher-0.10.0-SNAPSHOT.jar,
> it will become the file for main project artifact.
> NOTE: If multiple descriptors or descriptor-formats are provided for this
> project, the value of this file will be non-deterministic!
> [WARNING] Replacing pre-existing project main-artifact file:
> /home/mcparlandj/git/knox/gateway-demo-ldap-launcher/target/archive-tmp/gateway-demo-ldap-launcher-0.10.0-SNAPSHOT.jar
> with assembly file:
> /home/mcparlandj/git/knox/gateway-demo-ldap-launcher/target/gateway-demo-ldap-launcher-0.10.0-SNAPSHOT.jar
> ...
> [INFO] --- maven-assembly-plugin:2.4:single (server-launcher) @
> gateway-demo-ldap-launcher ---
> [WARNING] Artifact:
> org.apache.knox:gateway-demo-ldap-launcher:jar:0.10.0-SNAPSHOT references the
> same file as the assembly destination file. Moving it to a temporary location
> for inclusion.
> ...
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.4:single (server-launcher)
> on project gateway-demo-ldap-launcher: Execution server-launcher of goal
> org.apache.maven.plugins:maven-assembly-plugin:2.4:single failed: MALFORMED
> -> [Help 1]
> {code}
> However given that the following command lines (which omit the "package"
> goal) work, it appears to be a clash with the package goal and the
> maven-assembly-plugin:single goal.
> {code}
> mvn clean install -Ppackage
> mvn clean install -Prelease
> mvn clean install
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)