pom.xml
<scm>
<connection>scm:git:git@github.com:daggerok/kotlin-examples.git</connection>
<developerConnection>scm:git:git@github.com:daggerok/kotlin-examples.git</developerConnection>
<url>https://github.com/daggerok/kotlin-examples</url>
<tag>@{project.version}</tag>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.2</version>
</dependency>
</dependencies>
<configuration>
<goals>pre-integration-test</goals>
<preparationGoals>package</preparationGoals>
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
<tagNameFormat>@{project.version}</tagNameFormat>
<remoteTagging>false</remoteTagging>
<checkModificationExcludes>
<checkModificationExclude>pom.xml</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
</plugins>
</build>
./mvnw release:prepare
./mvnw release:perform