Created
November 8, 2017 02:42
-
-
Save trydofor/314a8aef2d05ce5660091cfe3a319315 to your computer and use it in GitHub Desktop.
maven git package with version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /data/publish/jiayu-bbs | |
# log git version to jar | |
version=src/main/resources/version.txt | |
git branch -v > $version | |
git log --pretty=format:'%h - %an, %ad : %s' --graph -10 >> $version | |
# delete config | |
rm -rf src/main/resources/latke.properties | |
rm -rf src/main/resources/log4j.properties | |
rm -rf src/main/resources/local.properties | |
rm -rf src/main/resources/symphony.properties | |
# maven build | |
export JAVA_HOME=/data/java/jdk1.8.0_92/ | |
export PATH=$JAVA_HOME/bin:$PATH | |
mvn clean install -U -Dmaven.test.skip=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment