jira-importer commented on issue #203: URL: https://github.com/apache/maven-deploy-plugin/issues/203#issuecomment-2771514873
**[Michaƫl](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER305673)** commented the gitlab-ci file in the project is good example of that i like to re-use my build scripts as much as possible; in this case that entails the main script part to be the same for the normal build (every commit) and the tag build (for releases) so for a release i set all versions to the same as the git tag in the pre_script using mvn $MAVEN_CLI_OPTS versions:set -DprocessAllModules -DnewVersion=$CI_COMMIT_TAG and in the after_script i invoke the deploy:deploy on the modules i'd like to deploy (normally that after_script is only for tag builds and specifies the modules using -pl ) mvn $MAVEN_CLI_OPTS jar:jar deploy:deploy -pl $MAVEN_MODULES -DaltDeploymentRepository=$MAVEN_SERVER_ID::$MAVEN_REPOSITORY -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org