Don't use nexus plugin for release

It doesn't support only deploying select modules, resulting in all modules getting deployed.
Also effectively disabling distribution management (by routing to local) until everything is straightened out.
This commit is contained in:
Tyler Benson 2017-06-30 16:12:40 -07:00
parent de0f60b5de
commit f2c0668f1c
1 changed files with 25 additions and 15 deletions

40
pom.xml
View File

@ -51,13 +51,21 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>nexus</id>
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>nexus</id>
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
</repository>
<!--<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>
<build>
@ -121,15 +129,17 @@
<!-- Stuff for releasing on the Maven Central -->
<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>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -141,8 +151,8 @@
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<checkModificationExcludes>
<checkModificationExclude>**/pom.xml</checkModificationExclude>
</checkModificationExcludes>
<checkModificationExclude>**/pom.xml</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
</plugins>