diff --git a/README.md b/README.md index 7c0ee2dfd07f9e0513b5bb0415f8d79c02af9fb2..c0c6bb7ed550471e89e045bceccaf3a3a66ed8c6 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,8 @@ They are bound to the `publish` stage, and use the following variables: | ----------------------------------- | ------------------------------------------------------------ | ----------------- | | `MAVEN_DEPLOY_ENABLED` | Set to `true` to enable a publish jobs | _none_ (disabled) | | `MAVEN_DEPLOY_FROM_UNPROTECTED_DISABLED` | Set to `true` to limit snapshot publication to protected branches | _none_ (disabled) | -| `MAVEN_DEPLOY_ARGS` | Maven arguments for the Snapshot job | `deploy -DskipTests` | -| `MAVEN_RELEASE_ARGS` | Maven arguments for the Release job | `release:prepare release:perform -Darguments=-DskipTests` | +| `MAVEN_DEPLOY_ARGS` | Maven arguments for the Snapshot job | `deploy -Dmaven.test.skip=true` | +| `MAVEN_RELEASE_ARGS` | Maven arguments for the Release job | `release:prepare release:perform -Darguments=-Dmaven.test.skip=true` | | `MAVEN_RELEASE_SCM_COMMENT_PREFIX` | Maven release plugin [scmCommentPrefix](https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#scmCommentPrefix) parameter | `[ci skip][maven-release-plugin]` | | `MVN_SEMREL_RELEASE_DISABLED` | Set to `true` to disable [semantic-release integration](#semantic-release-integration) | `[ci skip][maven-release-plugin]` | diff --git a/templates/gitlab-ci-maven.yml b/templates/gitlab-ci-maven.yml index c21b1859e13af1a8b61b3abadf0376e267cc6fee..552d0b11092d89cf426a64063a3a824d4a704a54 100644 --- a/templates/gitlab-ci-maven.yml +++ b/templates/gitlab-ci-maven.yml @@ -76,10 +76,10 @@ variables: -Dformats=HTML,JSON,XML # Maven deploy arguments - MAVEN_DEPLOY_ARGS: "deploy -DskipTests" + MAVEN_DEPLOY_ARGS: "deploy -Dmaven.test.skip=true" # Maven release arguments - MAVEN_RELEASE_ARGS: "release:prepare release:perform -Darguments=-DskipTests" + MAVEN_RELEASE_ARGS: "release:prepare release:perform -Darguments=-Dmaven.test.skip=true" MAVEN_RELEASE_SCM_COMMENT_PREFIX: "[ci skip][maven-release-plugin]" stages: