]
Jan Blizňák commented on JBWS-4156:
-----------------------------------
This is waiting for the new jbossws-parent release to be consumed in jbossws-cxf.
Get rid of duplicated executions of maven plugins
-------------------------------------------------
Key: JBWS-4156
URL:
https://issues.jboss.org/browse/JBWS-4156
Project: JBoss Web Services
Issue Type: Task
Components: jbossws-cxf
Affects Versions: jbossws-cxf-5.2.4.Final
Reporter: Jan Blizňák
Assignee: Jan Blizňák
Priority: Minor
Fix For: jbossws-cxf-5.3.0.Final
There are some plugins' executions executed more times during the build.
More specifically this issue appears for maven-jar-plugin and exec-maven-plugin:
{code:java}
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Web Services - Stack CXF Testsuite 5.2.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (validate-jboss-home) @ jbossws-cxf-testsuite ---
[INFO] Executing tasks
main:
[echo]
[echo] profile=wildfly1400
[echo]
jboss.home=/home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/test-server/jbossws-cxf-dist-5.2.5-SNAPSHOT/wildfly-14.0.0.Final
[echo]
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.12:add-test-source (add-source) @
jbossws-cxf-testsuite ---
[INFO] Test Source directory:
/home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/wsconsume/java added.
[INFO]
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources
@ jbossws-cxf-testsuite >>>
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (validate-jboss-home) @ jbossws-cxf-testsuite ---
[INFO] Executing tasks
main:
[echo]
[echo] profile=wildfly1400
[echo]
jboss.home=/home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/test-server/jbossws-cxf-dist-5.2.5-SNAPSHOT/wildfly-14.0.0.Final
[echo]
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.12:add-test-source (add-source) @
jbossws-cxf-testsuite ---
[INFO] Test Source directory:
/home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/wsconsume/java added.
[INFO]
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources
@ jbossws-cxf-testsuite <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ jbossws-cxf-testsuite ---
[INFO]
[INFO] --- maven-javadoc-plugin:3.0.1:jar (default) @ jbossws-cxf-testsuite ---
[INFO] Skipping javadoc generation
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack) @ jbossws-cxf-testsuite ---
[INFO] Configured Artifact:
org.jboss.ws.cxf:jbossws-cxf-dist:wildfly1400:5.2.5-SNAPSHOT:zip
[INFO] Unpacking
/home/travis/build/jbossws/jbossws-cxf/modules/dist/target/jbossws-cxf-dist-5.2.5-SNAPSHOT-wildfly1400.zip
to /home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/test-server with
includes "" and excludes ""
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (check-bc-and-unlimited-crypto) >
validate @ jbossws-cxf-testsuite >>>
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (validate-jboss-home) @ jbossws-cxf-testsuite ---
[INFO] Executing tasks
main:
[echo]
[echo] profile=wildfly1400
[echo]
jboss.home=/home/travis/build/jbossws/jbossws-cxf/modules/testsuite/target/test-server/jbossws-cxf-dist-5.2.5-SNAPSHOT/wildfly-14.0.0.Final
[echo]
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @
jbossws-cxf-testsuite ---
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (check-bc-and-unlimited-crypto) <
validate @ jbossws-cxf-testsuite <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (check-bc-and-unlimited-crypto) @
jbossws-cxf-testsuite ---
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JCE unlimited strength cryptography: AVAILABLE
Bouncy Castle JCE Provider: AVAILABLE - ON CLASSPATH (ver: 1.6,
file:/home/travis/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.60/bcprov-jdk15on-1.60.jar)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (integration-tests) @ jbossws-cxf-testsuite
---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (forked-integration-tests) @
jbossws-cxf-testsuite ---
[INFO] No tests to run.
[INFO]
{code}
The fix for source plugin is to use it properly, ie. use {{jar-no-fork}} goal instead of
{{jar}}.
For the exec plugin, this was fixed ages ago in version 1.3 so we just need to uprade.