|
|
@ -225,7 +225,7 @@ git push "${GH_REMOTE}" "${VERSION}"-release |
|
|
|
> first to clone the source code. And then make sure you set `GH_REMOTE="origin"` to make all command work fine. |
|
|
|
> first to clone the source code. And then make sure you set `GH_REMOTE="origin"` to make all command work fine. |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.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. |
|
|
@ -243,7 +243,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 -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.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. |
|
|
@ -275,7 +275,7 @@ git push "${GH_REMOTE}" --tags |
|
|
|
#### Maven Release Deploy |
|
|
|
#### Maven Release Deploy |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}" |
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.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. |
|
|
|