John McParland created KNOX-766:
-----------------------------------

             Summary: 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


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.3.4#6332)

Reply via email to