From ee7cc82a4d8a5adb457e8816fc7fd7a49bad0349 Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Wed, 14 Nov 2018 15:48:57 +0100 Subject: [PATCH] NO-JIRA Prevent maven-source-plugin being executed twice With the current Maven config, the maven-source-plugin is executed twice, this results in the sources-jars being attached twice which leads the deploy goal in trying to upload the same sources jars twice to the repository. This slows down the build process and also fails on repositories that disallow updating of existing artifacts. Additionally the "jar" goal is now replaced with "jar-no-fork" which prevents the maven life cycle being executed twice too. --- pom.xml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 7acfe0d4dfb..87acfcaab57 100644 --- a/pom.xml +++ b/pom.xml @@ -1403,8 +1403,9 @@ attach-sources + verify - jar + jar-no-fork @@ -1518,14 +1519,6 @@ maven-source-plugin - - - verify - - jar - - - org.apache.maven.plugins