|
|
@ -164,7 +164,7 @@ git push origin "${VERSION}"-release |
|
|
|
### Pre-Release Check |
|
|
|
### Pre-Release Check |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}" |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
* `-Prelease`: choose release profile, which will pack all the source codes, jar files and executable binary packages. |
|
|
|
* `-Prelease`: choose release profile, which will pack all the source codes, jar files and executable binary packages. |
|
|
@ -182,7 +182,7 @@ mvn release:clean |
|
|
|
Then, prepare to execute the release. |
|
|
|
Then, prepare to execute the release. |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}" |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
It is basically the same as the previous rehearsal command, but deleting `-DdryRun=true` parameter. |
|
|
|
It is basically the same as the previous rehearsal command, but deleting `-DdryRun=true` parameter. |
|
|
@ -214,7 +214,7 @@ git push origin --tags |
|
|
|
### Deploy the Release |
|
|
|
### Deploy the Release |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}" |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
After that command is executed, the version to be released will be uploaded to Apache staging repository automatically. |
|
|
|
After that command is executed, the version to be released will be uploaded to Apache staging repository automatically. |
|
|
|