Maven Release Plugin: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(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...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<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>
<dependencies>
<dependency>
<dependency>
Line 22: Line 29:
    </configuration>
    </configuration>
</plugin>
</plugin>
<build>
<plugins>
<plugins>
<build>
</syntaxhighlight>
</syntaxhighlight>


Line 57: Line 64:
{|
{|
| valign="top" |
| valign="top" |
* [https://www.mojohaus.org/build-helper-maven-plugin/parse-version-mojo.html Maven Release Plugin » build-helper:parse-version]
* [https://medium.com/javarevisited/how-to-increment-versions-for-the-maven-build-java-project-a7596cc501c2 Maven Release Plugin » Increment Versions]
* [https://thihenos.medium.com/maven-release-plugin-a-simple-example-of-package-management-9926506acfb9 Maven Release Plugin » A simple example]
* [https://thihenos.medium.com/maven-release-plugin-a-simple-example-of-package-management-9926506acfb9 Maven Release Plugin » A simple example]
* [https://gist.github.com/thihenos/87ade6889c1b8d0afbfb135fdeb75f58 Maven Release Plugin » Gist]
* [https://gist.github.com/thihenos/87ade6889c1b8d0afbfb135fdeb75f58 Maven Release Plugin » Gist]
Line 69: Line 78:
|-
|-
| valign="top" |
| valign="top" |
* [https://about.gitlab.com/blog/2023/11/01/tutorial-automated-release-and-release-notes-with-gitlab/ GitLab » Building an automated release pipeline]
* [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://support.atlassian.com/jira-software-cloud/docs/release-a-version-in-your-classic-project/ Jira » Release a version]
* [https://docs.gitlab.com/ee/user/project/releases/release_fields.html GitLab » Release fields]
* [https://docs.gitlab.com/ee/user/project/releases/ GitLab » Releases]
* [[Chorke Versions]]
* [[Maven]]
* [[Maven]]
* [[Java]]
* [[Java]]


| valign="top" |
| valign="top" |
* [https://medium.com/@iamarasekera/streamlining-your-development-workflow-managing-releases-versions-and-tags-be7018e68726 Managing Releases, Versions, & Tags]
* [https://www.gitkraken.com/gitkon/semantic-versioning-git-tags Semantic Versioning and Git Tags]


| valign="top" |
| valign="top" |


|}
|}

Latest revision as of 01:40, 2 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