diff --git a/maven/mvn-deploy.sh b/maven/mvn-deploy.sh index a6680c604c..9c0c8eb368 100755 --- a/maven/mvn-deploy.sh +++ b/maven/mvn-deploy.sh @@ -60,4 +60,11 @@ do -Dfile=$artifactId-$VERSION-sources-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom scp $artifactId-$VERSION-sources-$DSTAMP.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/$artifactId-$VERSION-sources.jar.asc fi + + if [ -r $artifactId-$VERSION-javadocs-$DSTAMP.jar ]; then + mvn deploy:deploy-file -DrepositoryId=apache-releases -P apache-releases \ + -Durl=$M2_REPOSITORY -DgeneratePom=false -Dpackaging=javadoc \ + -Dfile=$artifactId-$VERSION-javadocs-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom + scp $artifactId-$VERSION-javadocs-$DSTAMP.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/$artifactId-$VERSION-javadocs.jar.asc + fi done