aboutsummaryrefslogtreecommitdiffstats
path: root/maven
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2014-11-10 12:34:01 +0000
committerNick Burch <nick@apache.org>2014-11-10 12:34:01 +0000
commit6b34a21a35936d3aab184c6f64d4c0fd2fc9169c (patch)
tree08d9fbb405adba85e26c721c97be02fdd64a79a5 /maven
parentbb17321d3f65a2629b1d32a40fa50765649b5723 (diff)
downloadpoi-6b34a21a35936d3aab184c6f64d4c0fd2fc9169c.tar.gz
poi-6b34a21a35936d3aab184c6f64d4c0fd2fc9169c.zip
I think this is the right maven magic to deploy a javadoc jar, but we may have to see...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637831 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven')
-rwxr-xr-xmaven/mvn-deploy.sh7
1 files changed, 7 insertions, 0 deletions
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