Configure maven-release-plugin for a git-based release
This, by the way, is the only sane way of using this plugin with git in my opinion: I get to keep control of everything, nothing is even pushed without my consent.
- Id
- f2adc65d39250e67fd9d89fa8463db139dd139ee
- Author
- Caio
- Commit time
- 2019-03-01T12:21:58+01:00
Modified pom.xml
<groupId>co.caio.cerberus</groupId>
<artifactId>cerberus</artifactId>
- <version>1.0-SNAPSHOT</version>
+ <version>0.0.1-SNAPSHOT</version>
<url>https://caio.co</url>
<packaging>jar</packaging>
<name>cerberus</name>
- <description></description>
+ <description>Recipe Search and Metadata retrieval library</description>
+
+ <scm>
+ <connection>scm:git:file://.</connection>
+ <developerConnection>scm:git:file://.</developerConnection>
+ <url>scm:git:file://.</url>
+ <tag>HEAD</tag>
+ </scm>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
+ <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
</properties>
<dependencyManagement>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>${maven-release-plugin.version}</version>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <pushChanges>false</pushChanges>
+ <localCheckout>true</localCheckout>
+ <remoteTagging>false</remoteTagging>
+ <goals>install</goals>
+ <tagNameFormat>@{project.version}</tagNameFormat>
+ </configuration>
+ </plugin>
<!-- package a test jar so that casserole can use it -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>