Failed to retrieve remote metadata com.cjy:ssmParentAndSon:1.0-SNAPSHOT/maven-metadatNot authorized

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ssmParentAndSon: Failed to retrieve remote metadata com.cjy:ssmParentAndSon:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.cjy:ssmParentAndSon:1.0-SNAPSHOT/maven-metadata.xml from/to snapshots (http://127.0.0.1:8081/repository/maven-snapshots/): Not authorized

 

  

<mirrors>

<mirror>

    <id>alimaven</id>

    <mirrorOf>central</mirrorOf>

    <name>aliyun maven</name>

    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

  </mirror>

</mirrors>

 

用下面注释掉的会报错,需要认证

  <!-- <mirrors>

  <mirror>

    <id>nexus</id>

    <mirrorOf>*</mirrorOf>

    <name>nexus maven</name>

    <url>http://127.0.0.1:8081/repository/maven-public/</url>

  </mirror>

</mirrors> -->

上一篇:An HTTP error occurred when trying to retrieve this URL.


下一篇:Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again错误