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.
MODIFY
pom.xml
pom.xml
<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>
<!-- 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>

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.