I’d like to run a custom maven step using the completionGoals option of the maven-release-plugin. This steps need to know the tag name the maven-release-plugin used to tag the release commit. Is there a variable to access this tag name?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the release-plugin has “tagNameFormat” as configuration paramter. You could set that one to a variable and use it for your own purpose too?
The default is “@{project.artifactId}-@{project.version}” (see http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat) so you could just guess it that way if you know folks dont use that paramter.
since the released pom.xml will contain the tag url in ${project.scm.developerconnection} that may be an option as well.