尝试将代码推送到nexus maven时出错

时间:2018-01-17 15:21:58

标签: java git maven

我发现为了将我的代码添加到我的nexus repo,我必须使用mvn deploy
运行时我收到此错误: https://hastebin.com/wikisohuni.pas
我已经搜索了所有的stackoverflow和在线指南,但没有工作! settings.xml中:

<?xml version="1.0" encoding="UTF-8"?>
<settings 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/settings-1.0.0.xsd">
  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://192.168.0.145/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
  <proxies></proxies>
  <pluginGroups>
    <pluginGroup>org.codehaus.modello</pluginGroup>
  </pluginGroups>
  <profiles>
    <profile>
      <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
  <servers>
    <server>
      <id>nexus</id>
      <username>admin</username>
      <password>removed</password>
    </server>
  </servers>
</settings>

我的pom可以在https://github.com/PhanaticGames/PhanaticSpigotCore/blob/master/pom.xml

找到

编辑:我稍微编辑了我的设置并将该错误消失了,但是,我现在收到此错误:https://hastebin.com/ohukowohud.sql 然而,这些是运行我的罐子。我正在为这些jar运行的其他插件制作一个中央API。

0 个答案:

没有答案