diff --git a/pom.xml b/pom.xml
index 42f9bd73cdfb..4f13ff6306d5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -234,32 +234,6 @@
-Xlint:unchecked
-
- org.apache.maven.plugins
- maven-source-plugin
- 3.0.0
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.10.3
-
-
- attach-javadocs
-
- jar
-
-
-
-
org.apache.maven.plugins
maven-gpg-plugin
@@ -444,4 +418,39 @@
+
+
+ release
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.0.0
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.3
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+
+
+
diff --git a/utilities/after_success.sh b/utilities/after_success.sh
index be7484806c46..d8eb94520ebb 100755
--- a/utilities/after_success.sh
+++ b/utilities/after_success.sh
@@ -34,9 +34,9 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
cd ..
utilities/update_docs_version.sh # Update version in READMEs
- mvn clean deploy --settings ~/.m2/settings.xml -P sign-deploy
+ mvn clean deploy --settings ~/.m2/settings.xml -P sign-deploy,release
else
- mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~/.m2/settings.xml
+ mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~/.m2/settings.xml -P release
fi
else
echo "Not deploying artifacts. This is only done with non-pull-request commits to master branch with Oracle Java 7 builds."
diff --git a/utilities/verify.sh b/utilities/verify.sh
index b29ab8d8f747..26c490a55806 100755
--- a/utilities/verify.sh
+++ b/utilities/verify.sh
@@ -10,7 +10,7 @@ if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
chmod 700 $TRAVIS_BUILD_DIR/signing-tools
tar xvf $TRAVIS_BUILD_DIR/signing-tools.tar -C $TRAVIS_BUILD_DIR/signing-tools
# Run verify
- mvn verify
+ mvn verify -P release
else
- mvn verify -DskipITs
+ mvn verify -DskipITs -P release
fi