无法deploy

来源:5-3 从Maven私服下载制品

Mydream_come_true

2020-09-21

完全按照视频的教程,当deploy的时候,发现出这个错误“Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project TestArtifactory: Failed to deploy artifacts: Could not transfer artifact org.example:TestArtifactory:jar:1.0-20200921.014455-1 from/to central (http://localhost:8081/artifactory/libs-release): Connection reset by peer: socket write error”。
图片描述
图片描述
图片描述
第二个问题我在问一下:这个artifactory的本地库在硬盘哪里存放呢,我把repository都删除掉,这个artifactory的本地库还在,还可以通过浏览器看到它之前存储的jar包。

写回答

4回答

清风

2020-09-24

问题解决了吧?

0
0

清风

2020-09-24

问题解决了吧?

0
0

Mydream_come_true

提问者

2020-09-21

非常感谢老师。以下是我的setting.xml文件。

<?xml version="1.0" encoding="UTF-8"?>

<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <servers>

    <server>

      <username>admin</username>

      <password>AP26D6E7uSffjcq8R7FBuRqWgq1</password>

      <id>central</id>

    </server>

    <server>

      <username>admin</username>

      <password>AP26D6E7uSffjcq8R7FBuRqWgq1</password>

      <id>snapshots</id>

    </server>

  </servers>

  

   <localRepository>D:/repository</localRepository>

    <!-- <mirrors>

<mirror>

      <id>alimaven</id>

      <name>aliyun maven</name>

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

      <mirrorOf>central</mirrorOf>        

    </mirror>

  </mirrors>-->

  <profiles>

  <profile>

  <id>jdk-1.8</id>

  <activation>

<activeByDefault>true</activeByDefault>

<jdk>1.8</jdk>

  </activation>

  <properties>

<maven.compiler.source>1.8</maven.compiler.source>

<maven.compiler.target>1.8</maven.compiler.target>

<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>

  </properties>

</profile>

    <profile>

      <repositories>

        <repository>

          <snapshots>

            <enabled>false</enabled>

          </snapshots>

          <id>central</id>

          <name>libs-release</name>

          <url>http://localhost:8081/artifactory/libs-release</url>

        </repository>

        <repository>

          <snapshots />

          <id>snapshots</id>

          <name>libs-snapshot</name>

          <url>http://localhost:8081/artifactory/libs-snapshot</url>

        </repository>

      </repositories>

      <pluginRepositories>

        <pluginRepository>

          <snapshots>

            <enabled>false</enabled>

          </snapshots>

          <id>central</id>

          <name>libs-release</name>

          <url>http://localhost:8081/artifactory/libs-release</url>

        </pluginRepository>

        <pluginRepository>

          <snapshots />

          <id>snapshots</id>

          <name>libs-snapshot</name>

          <url>http://localhost:8081/artifactory/libs-snapshot</url>

        </pluginRepository>

      </pluginRepositories>

      <id>artifactory</id>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>artifactory</activeProfile>

  </activeProfiles>

</settings>

密码是从artifactory界面中Edit profile里面复制出来的。


0
1
清风
admin AP26D6E7uSffjcq8R7FBuRqWgq1 密码换成明文密码试试,这个版本的Artifactory加密密码好像有问题。
2020-09-21
共1条回复

清风

2020-09-21

  1. 看起来是没有提供用户名和密码。咱们的 settings.xml 发出来看看?

  2. 默认的存储地址在Artifactory 的安装目录下 data 目录。如果需要删除 jar 包,可以在 Artifactory 的 UI 界面上右键删除,然后在左下角回收站里彻底删除,当然也有接口批量删除。但不要直接删除 data 目录的数据哦。

0
0

SpringCloud+Kubernetes 微服务容器化交付实战

学习业界领先的持续交付方案

662 学习 · 109 问题

查看课程