You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upload_sonatype.sh 593B

1234567891011121314151617181920
  1. #!/bin/sh
  2. v=`cat pom.xml | head -15 | grep "<version>" | head -1 | cut -d ">" -f2 | cut -d "<" -f1`
  3. [ -z "$v" ] && exit
  4. mvn clean package -Dmaven.test.skip javadoc:jar source:jar
  5. for i in "" sources javadoc
  6. do
  7. [ -n "$i" ] && c="-Dclassifier=$i" || c=""
  8. mvn gpg:sign-and-deploy-file \
  9. -Dfile=target/gwtquery-$v-$i.jar \
  10. -DrepositoryId=sonatype-nexus-staging \
  11. -Durl=http://oss.sonatype.org/service/local/staging/deploy/maven2 \
  12. -Dpackaging=jar \
  13. -DartifactId=gwtquery \
  14. -DgroupId=com.googlecode.gwtquery \
  15. -Dversion=$v \
  16. -DpomFile=pom.xml $c || exit
  17. done