pom.xmlã«è¨è¼ã®ãã¼ã¸ã§ã³ãç¹å®ã®å¤ã®æã®ã¿ãã³ãã³ããå®è¡ãã
以ä¸ã®è¨äºãããã¾ããã
ã¨ãããã¨ã¯ãããå¿ç¨ããã¨ãç¹å®ã®ãã¼ã¸ã§ã³ã®æã®ã¿ã³ãã³ããå®è¡ã§ãã¾ããä¾ãã°deployãããã¨ãã
ãããªæãã
PROJECT_VERSION=`mvn -q '-Dexec.executable=echo' '-Dexec.args=${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.6.0:exec | awk '{print $1}'` if [ `echo $PROJECT_VERSION | grep 'SNAPSHOT'` ] ; then mvn -e deploy -Dmaven.test.skip=true -Dgpg.skip=true fi