Solved Error 401 when deploying to nexus repository.

Discussion in 'Spigot Plugin Development' started by Checkium, Jun 11, 2016.

  1. I'm trying to deploy my plugin to my nexus repo and it's giving me a error 401 in eclipse
    Error: http://pastebin.com/aXJBhEX8

    Code (Text):

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">


      <distributionManagement>
      <snapshotRepository>
          <id>repo-snapshots</id>
          <url>http://repo.olympiccode.xyz/repository/BukkitPl-Snapshot</url>
       </snapshotRepository>
       <repository>
          <id>repo</id>
          <url>http://repo.olympiccode.xyz/repository/BukkitPl</url>
       </repository>
    </distributionManagement>
      <modelVersion>4.0.0</modelVersion>
      <groupId>CheckiumAPI</groupId>
      <artifactId>CheckiumAPI</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <name>CheckiumAPI</name>
      <build>
      <plugins>
      <plugin>
       <groupId>org.sonatype.plugins</groupId>
       <artifactId>nexus-staging-maven-plugin</artifactId>
       <version>1.5.1</version>
       <executions>
          <execution>
             <id>default-deploy</id>
             <phase>deploy</phase>
             <goals>
                <goal>deploy</goal>
             </goals>
          </execution>
       </executions>
       <configuration>
          <serverId>nexus</serverId>
          <nexusUrl>http://repo.olympiccode.xyz/</nexusUrl>
          <skipStaging>true</skipStaging>
       </configuration>
    </plugin>
    </plugins>
      </build>
    </project>
     

    Code (Text):

    <servers>
       <server>
          <id>nexus</id>
          <username>Checkium</username>
          <password>*censored*</password>
       </server>
    </servers>
     
     
  2. On pom.xml it was "<id>repo-snapshots</id>" and "<id>repo</id>", on settings.xml it was "<id>nexus</id>".