Repository: activemq-artemis Updated Branches: refs/heads/master ff2073a7e -> 54e9d67b9
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. Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/ee7cc82a Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/ee7cc82a Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/ee7cc82a Branch: refs/heads/master Commit: ee7cc82a4d8a5adb457e8816fc7fd7a49bad0349 Parents: ff2073a Author: Sebastian Thomschke <sebt...@users.noreply.github.com> Authored: Wed Nov 14 15:48:57 2018 +0100 Committer: Sebastian Thomschke <sebt...@users.noreply.github.com> Committed: Wed Nov 14 15:48:57 2018 +0100 ---------------------------------------------------------------------- pom.xml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/ee7cc82a/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 7acfe0d..87acfca 100644 --- a/pom.xml +++ b/pom.xml @@ -1403,8 +1403,9 @@ <executions> <execution> <id>attach-sources</id> + <phase>verify</phase> <goals> - <goal>jar</goal> + <goal>jar-no-fork</goal> </goals> </execution> </executions> @@ -1518,14 +1519,6 @@ </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <phase>verify</phase> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>