Я вижу свою опубликованную зависимость здесь:
https://oss.sonatype.org/#nexus-search;quick~ores
это выглядит такэто постановочное репо?Потому что, когда я ищу здесь:
https://search.maven.org/search?q=ores
я не получаю результатов:
Я предполагаю, что когда я публикую артефакт, я публикую в промежуточную стадию, кто-нибудь знает, как публиковать в производство, используя Sonatype?
В моем файле pom.xml у меня есть:
<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>
и у меня есть:
<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>false</autoReleaseAfterClose>
</configuration>
</plugin>
Так, возможно, мне нужно использовать производственные плагины вместо постановки?Кажется сложно.Когда я устанавливаю
<autoReleaseAfterClose>true</autoReleaseAfterClose>
, я получаю эту ошибку:
[ОШИБКА] Не удалось выполнить цель org.sonatype.plugins: nexus-staging-maven-plugin: 1.6.8: deploy (injected-nexus-deploy) в проекте async.0.1: выполнение injected-nexus-deploy цели org.sonatype.plugins: nexus-staging-maven-plugin: 1.6.8: развертывание не выполнено: 403 - Запрещено -> [Помощь 1]