Skip to content

Commit

Permalink
Use default release-profile name for release plugin
Browse files Browse the repository at this point in the history
Remove inherited and not used sonatype-oss-release profile

d
  • Loading branch information
slachiewicz committed Feb 18, 2018
1 parent 8c5a3f5 commit 14b0297
Showing 1 changed file with 2 additions and 70 deletions.
72 changes: 2 additions & 70 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,6 @@
<developerConnection>scm:git:git@github.com:asciidoctor/asciidoctor-maven-plugin.git</developerConnection>
</scm>

<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<issueManagement>
<url>https://github.com/asciidoctor/asciidoctor-maven-plugin/issues</url>
<system>GitHub Issues</system>
Expand Down Expand Up @@ -276,8 +262,6 @@
<version>2.1</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>-Psonatype-oss-release</arguments>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -346,60 +330,13 @@
</build>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</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.7</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.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--
To release to bintray, add your credentials to ~/.m2/settings.xml and run:
$ mvn deploy -Prelease
$ mvn deploy
-->
<id>release</id>
<id>release-profile</id>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -507,11 +444,6 @@
</profiles>

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>bintray-asciidoctor-maven-asciidoctor-maven-plugin</id>
<name>asciidoctor-maven-asciidoctor-maven-plugin</name>
Expand Down

0 comments on commit 14b0297

Please sign in to comment.