Maven Release Plugin

From Chorke Wiki
Revision as of 19:40, 1 April 2024 by Shahed (talk | contribs) (Created page with "<syntaxhighlight lang="xml"> <dependencies> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> <type>maven-plugin</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> <configuration> <tagNameFormat>@{project.version}</tagNa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<dependencies>
	<dependency>
		<groupId>org.codehaus.mojo</groupId>
		<artifactId>build-helper-maven-plugin</artifactId>
		<version>3.2.0</version>
		<type>maven-plugin</type>
	</dependency>
</dependencies>

<build>
    <plugins>
		<plugin>
		    <groupId>org.apache.maven.plugins</groupId>
		    <artifactId>maven-release-plugin</artifactId>
		    <version>2.5.3</version>
		    <configuration>
		        <tagNameFormat>@{project.version}</tagNameFormat>
		        <checkModificationExcludes>
		            <checkModificationExclude>pom.xml</checkModificationExclude>
		        </checkModificationExcludes>
		    </configuration>
		</plugin>
	<build>
<plugins>

Knowledge

mvn --batch-mode \
release:clean release:prepare release:perform \
-Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true \
-Dmaven.test.skip=true" -Dusername=<GIT_SCM_USER> -Dpassword=<GIT_SCM_PASS>
mvn --batch-mode \
build-helper:parse-version versions:set \
-DnewVersion=${parsedVersion.majorVersion}\
.${parsedVersion.nextMinorVersion}.0-SNAPSHOT versions:commit

References