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 2018/11/04 13:14:23 UTC
[incubator-skywalking] branch asf-release updated: Restore
submodule active.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch asf-release
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/asf-release by this push:
new 5cc2a09 Restore submodule active.
5cc2a09 is described below
commit 5cc2a09d977f5ddcb202ca753321865400ee8c59
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Sun Nov 4 21:14:15 2018 +0800
Restore submodule active.
---
docs/en/guides/How-to-release.md | 2 +-
pom.xml | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/docs/en/guides/How-to-release.md b/docs/en/guides/How-to-release.md
index 9f0e12e..722bc27 100644
--- a/docs/en/guides/How-to-release.md
+++ b/docs/en/guides/How-to-release.md
@@ -41,7 +41,7 @@ Use the following block as a template and place it in ~/.m2/settings.xml
## Stage the release
```
-./mvnw release:perform -DskipTests
+./mvnw release:perform -DskipTests -Pauto-submodule
```
1. Set version number as x.y.z, and tag as vx.y.z
1. The release will automatically be inserted into a temporary staging repository for you.
diff --git a/pom.xml b/pom.xml
index f5bbeb4..8490ad6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -448,4 +448,41 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>auto-submodule</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <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>
+
</project>