Details

    • Type: Publishing Support
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Labels:
    • Group Id:
      null
    • Publishing Hostname:
      oss.sonatype.org
    • Modify publishing permissions?:
      No

      Description

      I have created a gpg key and published it and now I am trying to publish my project in the maven central repository. I have created an issue with the project and tried to deploy it using many plugins and always fail. Now I have this pom and when I build the project maven tell me that Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: 403 - Forbidden.

      <plugins>
                  <plugin>
                      <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>
                      <artifactId>maven-release-plugin</artifactId>
                      <version>2.5.3</version>
                      <configuration>
                          <localCheckout>true</localCheckout>
                          <pushChanges>false</pushChanges>
                          <mavenExecutorId>forked-path</mavenExecutorId>
                          <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
                      </configuration>
                      <dependencies>
                          <dependency>
                              <groupId>org.apache.maven.scm</groupId>
                              <artifactId>maven-scm-provider-gitexe</artifactId>
                              <version>1.9.5</version>
                          </dependency>
                      </dependencies>
                  </plugin>
                  <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>
                  </plugin>
              </plugins>
          </build>
          <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>
          <scm>
              <connection>scm:git:git://github.com/RamiManaf/Sofof.git</connection>
              <developerConnection>scm:git:git@github.com:RamiManaf/Sofof.git</developerConnection>
              <url>https://github.com/RamiManaf/Sofof</url>
              <tag>HEAD</tag>
          </scm>
          <profiles>
              <!-- GPG Signature on release -->
              <profile>
                  <id>release-sign-artifacts</id>
                  <activation>
                      <property>
                          <name>performRelease</name>
                          <value>true</value>
                      </property>
                  </activation>
                  <build>
                      <plugins>
                          <plugin>
                              <groupId>org.apache.maven.plugins</groupId>
                              <artifactId>maven-gpg-plugin</artifactId>
                              <version>1.6</version>
                              <executions>
                                  <execution>
                                      <id>sign-artifacts</id>
                                      <phase>verify</phase>
                                      <goals>
                                          <goal>sign</goal>
                                      </goals>
                                  </execution>
                              </executions>
                          </plugin>
                      </plugins>
                  </build>
              </profile>
          </profiles>
      

      I am using the token of my account from the nexus repository manager account and put these configurations in the settings.xml

      <server>
        <id>ossrh</id>
        <username>*********</username>
        <password>**********</password>
      </server>
       

      Even the build failed the jar files exists in the staging repository and looks right but when I try to release it it always show 403 Forbidden.
      This is my poject issue https://issues.sonatype.org/browse/OSSRH-49366

        Attachments

          Activity

            People

            Assignee:
            jorlina Joel Orlina
            Reporter:
            Rami_Manaf Rami Manaf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title