Last active
April 18, 2019 14:43
-
-
Save sirolf2009/9bd55ad0e2323b6fb5abd487c1a881ef to your computer and use it in GitHub Desktop.
Maven releasing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn clean deploy -P release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.sirolf2009</groupId> | |
<artifactId>PROJECT</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<url>https://github.com/sirolf2009/PROJECT</url> | |
<name>PROJECT NAME</name> | |
<description>PROJECT DESC</description> | |
<licenses> | |
<license> | |
<name>WFTPL</name> | |
<url>http://www.wtfpl.net/</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<scm> | |
<connection>scm:git:[email protected]:sirolf2009/PROJECT.git</connection> | |
<developerConnection>scm:git:[email protected]:sirolf2009/PROJECT.git</developerConnection> | |
<url>scm:git:[email protected]:sirolf2009/PROJECT.git</url> | |
</scm> | |
<developers> | |
<developer> | |
<name>sirolf2009</name> | |
<email>[email protected]</email> | |
<roles> | |
<role>creator</role> | |
</roles> | |
</developer> | |
</developers> | |
<distributionManagement> | |
<snapshotRepository> | |
<id>ossrh</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
</snapshotRepository> | |
<repository> | |
<id>ossrh</id> | |
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | |
</repository> | |
</distributionManagement> | |
<profiles> | |
<profile> | |
<id>release</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.sonatype.plugins</groupId> | |
<artifactId>nexus-staging-maven-plugin</artifactId> | |
<version>1.6.7</version> | |
<extensions>true</extensions> | |
<configuration> | |
<serverId>ossrh</serverId> | |
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | |
<autoReleaseAfterClose>true</autoReleaseAfterClose> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>jar-no-fork</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.9.1</version> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.6</version> | |
<executions> | |
<execution> | |
<id>sign-artifacts</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>sign</goal> | |
</goals> | |
<configuration> | |
<gpgArguments> | |
<arg>--pinentry-mode</arg> | |
<arg>loopback</arg> | |
</gpgArguments> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.5.3</version> | |
<configuration> | |
<autoVersionSubmodules>true</autoVersionSubmodules> | |
<useReleaseProfile>false</useReleaseProfile> | |
<releaseProfiles>release</releaseProfiles> | |
<goals>deploy</goals> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment