From ca82b4de1b131a85a361c3a86f8df4698da7e1d1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 29 Dec 2015 09:08:34 +0000 Subject: [PATCH] pom.xml: Only use javadoc, source and deploy plugins in release profile Avoid performing the costly process of building the javadoc and source jars when not performing a release. Ref: http://central.sonatype.org/pages/apache-maven.html#using-a-profile --- pom.xml | 77 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/pom.xml b/pom.xml index 409c454..018a793 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ - release-sign-artifacts + release performRelease @@ -77,10 +77,46 @@ - + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + attach-sources + verify + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + + attach-javadocs + verify + + jar + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + - + @@ -262,41 +298,6 @@ - - - org.apache.maven.plugins - maven-source-plugin - 2.4 - - - attach-sources - verify - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - - - attach-javadocs - verify - - jar - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 2.8.2 -