Maven Release Plugin: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 78: Line 78:
|-
|-
| valign="top" |
| valign="top" |
* [https://support.atlassian.com/jira-software-cloud/docs/enable-releases-and-versions/ Jira » Enable Releases & Versions]
* [[Maven Deploy External JAR]]
* [[Maven Deploy External JAR]]
* [[Maven Checkstyle Plugin]]
* [[Maven Checkstyle Plugin]]
* [https://docs.gitlab.com/ee/user/project/releases/ GitLab » Releases]
* [[Chorke Versions]]
* [[Chorke Versions]]
* [[Maven]]
* [[Maven]]

Revision as of 22:36, 1 April 2024

<scm>
    <developerConnection>scm:git:[email protected]:academia/academia-http-crawler.git</developerConnection>
    <connection>scm:git:git://cdn.chorke.org/academia/academia-http-crawler.git</connection>
    <url>https://cdn.chorke.org/gitlab/academia/academia-http-crawler</url>
    <tag>@{project.version}</tag>
</scm>

<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>
	<plugins>
<build>

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