执行命令:-
时,Maven无法找到前缀“ nexus-staging”mvn nexus-staging:release
我已经交叉验证了该插件也位于“ .m2 \ repository \ org \ sonatype \ plugins \ nexus-staging-maven-plugin \ 1.6.8”位置。
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
答案 0 :(得分:0)
简短格式仅在为groupId配置时有效。否则你需要写
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:release