You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/09/13 09:38:23 UTC
[skywalking-java] 01/01: Add git submodule command for profile All
in maven
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch doc-polish
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git
commit 7e33d58aabab9d9c4b537ea9192db5b06b5226dd
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Mon Sep 13 17:38:17 2021 +0800
Add git submodule command for profile All in maven
---
README.md | 3 ++-
docs/en/contribution/release-java-agent.md | 4 ++--
pom.xml | 37 ++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index b9b361b..be54127 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,8 @@ SkyWalking: an APM(application performance monitor) system, especially designed
Please head to the [releases page](https://skywalking.apache.org/downloads/) to download a release of Apache SkyWalking.
# Compiling project
-> ./mvnw clean package
+> git clone https://github.com/apache/skywalking-java.git
+> ./mvnw clean package -Pall
The agent binary package is generated in `skywalking-agent` folder.
diff --git a/docs/en/contribution/release-java-agent.md b/docs/en/contribution/release-java-agent.md
index 30291b6..2a36763 100644
--- a/docs/en/contribution/release-java-agent.md
+++ b/docs/en/contribution/release-java-agent.md
@@ -45,7 +45,7 @@ This step is only for testing purpose. If your env is correctly set, you don't n
## Prepare for the release
```
./mvnw release:clean
-./mvnw release:prepare -DautoVersionSubmodules=true
+./mvnw release:prepare -DautoVersionSubmodules=true -Pall
```
- Set version number as x.y.z, and tag as **v**x.y.z (The version tag must start with **v**. You will find out why this is necessary in the next step.)
@@ -54,7 +54,7 @@ _You could do a GPG signature before preparing for the release. If you need to i
## Stage the release
```
-./mvnw release:perform -DskipTests
+./mvnw release:perform -DskipTests -Pall
```
- The release will be automatically inserted into a temporary staging repository.
diff --git a/pom.xml b/pom.xml
index 811246f..d16eeb6 100755
--- a/pom.xml
+++ b/pom.xml
@@ -125,6 +125,43 @@
</properties>
+ <profiles>
+ <profile>
+ <id>all</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>${exec-maven-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>git submodule update</id>
+ <phase>initialize</phase>
+ <inherited>false</inherited>
+ <configuration>
+ <executable>git</executable>
+ <arguments>
+ <argument>submodule</argument>
+ <argument>update</argument>
+ <argument>--init</argument>
+ <argument>--recursive</argument>
+ </arguments>
+ </configuration>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
<dependencies>
<dependency>
<groupId>junit</groupId>