|
|
|
@ -4,7 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
|
|
get_local_maven_project_version()
|
|
|
|
|
{
|
|
|
|
|
"$DIR/mvnw" org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate \
|
|
|
|
|
"$DIR/mvnw" -T 2C -Dmaven.test.skip=true -DskipTests=true -Dmaven.javadoc.skip=true org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate \
|
|
|
|
|
-Dexpression=project.version -f $DIR/pom.xml -B | grep -e '^[^\[]' | cut -b 1-5
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ exit_on_err()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# maven package the arthas
|
|
|
|
|
"$DIR/mvnw" clean package -Dmaven.test.skip=true -f $DIR/pom.xml \
|
|
|
|
|
"$DIR/mvnw" clean package -T 2C -Dmaven.test.skip=true -DskipTests=true -Dmaven.javadoc.skip=true -f $DIR/pom.xml \
|
|
|
|
|
|| exit_on_err 1 "package arthas failed."
|
|
|
|
|
|
|
|
|
|
rm -r "$DIR/core/src/main/resources/com/taobao/arthas/core/res/version"
|
|
|
|
|