提交 5cc2a09d 编写于 作者: wu-sheng's avatar wu-sheng

Restore submodule active.

上级 1cb6b610
......@@ -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.
......
......@@ -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>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册