|
@@ -208,7 +208,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.
|
|
|
|
|
|
```shell
|
|
|
-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}"
|
|
|
+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}"
|
|
|
```
|
|
|
|
|
|
- `-Prelease`: choose release profile, which will pack all the source codes, jar files and executable binary packages.
|
|
@@ -226,7 +226,7 @@ mvn release:clean
|
|
|
Then, prepare to execute the release.
|
|
|
|
|
|
```shell
|
|
|
-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}"
|
|
|
+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}"
|
|
|
```
|
|
|
|
|
|
It is basically the same as the previous rehearsal command, but deleting `-DdryRun=true` parameter.
|
|
@@ -258,7 +258,7 @@ git push "${GH_REMOTE}" --tags
|
|
|
#### Maven Release Deploy
|
|
|
|
|
|
```shell
|
|
|
-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}"
|
|
|
+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}"
|
|
|
```
|
|
|
|
|
|
After that command is executed, the version to be released will be uploaded to Apache staging repository automatically.
|