无法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
问题解决了吧?
00 -
清风
2020-09-24
问题解决了吧?
00 -
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里面复制出来的。
012020-09-21 -
清风
2020-09-21
看起来是没有提供用户名和密码。咱们的 settings.xml 发出来看看?
默认的存储地址在Artifactory 的安装目录下 data 目录。如果需要删除 jar 包,可以在 Artifactory 的 UI 界面上右键删除,然后在左下角回收站里彻底删除,当然也有接口批量删除。但不要直接删除 data 目录的数据哦。
00
相似问题