mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
support maven Parallel builds and speed up as-package.sh
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
@@ -11,6 +11,13 @@
|
||||
<name>arthas-packaging</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.taobao.arthas</groupId>
|
||||
<artifactId>arthas-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.taobao.arthas</groupId>
|
||||
<artifactId>arthas-site</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user