Release fix (#2566)
* Introduce new profile in release * Fix a missing change. * Fix wrong profile name.
This commit is contained in:
parent
9b87086d72
commit
65c503b674
|
|
@ -40,13 +40,13 @@ Apache maven staging repository check list.
|
|||
## Test your settings
|
||||
This step is only for test, if your env is set right, don't need to check every time.
|
||||
```
|
||||
./mvnw clean install -Papache-release (this will build artifacts, sources and sign)
|
||||
./mvnw clean install -Pall (this will build artifacts, sources and sign)
|
||||
```
|
||||
|
||||
## Prepare 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 (version tag must start with **v**, you will find the purpose in next step.)
|
||||
|
|
@ -56,7 +56,7 @@ but just failure. Run `gpg --sign xxx` to any file could remember the password f
|
|||
|
||||
## Stage the release
|
||||
```
|
||||
./mvnw release:perform -DskipTests
|
||||
./mvnw release:perform -DskipTests -Pall
|
||||
```
|
||||
|
||||
- The release will automatically be inserted into a temporary staging repository for you.
|
||||
|
|
|
|||
65
pom.xml
65
pom.xml
|
|
@ -113,6 +113,47 @@
|
|||
<module>apm-dist</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>all</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<modules>
|
||||
<module>apm-sniffer</module>
|
||||
<module>apm-application-toolkit</module>
|
||||
<module>oap-server</module>
|
||||
<module>apm-webapp</module>
|
||||
<module>apm-dist</module>
|
||||
</modules>
|
||||
<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>
|
||||
|
||||
<properties>
|
||||
|
|
@ -251,30 +292,6 @@
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
<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>
|
||||
<plugin>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>${maven-enforcer-plugin.version}</version>
|
||||
|
|
|
|||
Loading…
Reference in New Issue