I';当我尝试将Maven项目部署到Artifactory时,我会遇到这个错误 我已经尝试修复此错误好几天了,我尝试删除错误中描述的文件,但它不起作用,我尝试删除整个存储库文件夹,并再次使其不起作用。 未能更新元数据org.jfrog.test:multi:3.7-SNAPSHOT/maven-metadata.xml:无法分析元数据/root/.m2/repository/org/jfrog/test/multi/3.7-SNAPSHOT/maven-metadata-central.xml:意外标记 错误中描述的文件(maven metadata central.xml)包含以下信息: JFrog@keyframes心脏跳动{from{opacity:1}50%{opacity:0;transform:scale(.8)}到{opacity:0;transform:scale(.8)}@keyframes心跳{from{transform:scale3d(1,1,1,1)}50%{transform:scale3d(1.15,1.15)}到{transform:scale3d(1,1,1)}。撞击心脏容器{显示:无;对齐项目:中心;对齐内容:中心;位置:绝对;左:0;右:0;顶部:0;底部:0;z索引:999999999;背景:线性渐变(132.49度,41485714.17%,#252831 83.36%)}。撞击心脏容器。显示飞溅{显示:flex}。徽标{宽度:130px;-webkit背面可见性:隐藏;-ms变换:translateZ(0);-webkit transform:translateZ(0);transform:translateZ(0)}.logo.pulse{animation:heartbeat 1.7s infinite}.logo.zoom{animation:heartbeatOut 1s forwards}(函数(){ const splashScreen=document.querySelector(“.pounding heart container”); const logo=document.querySelector('.logo'); window.showSplashPulse=函数(){ splashScreen.classList.add('show-splash'); }; window.hideSplashPulse=函数(){ setTimeout(函数(){ splashScreen.classList.remove('show-splash'); }, 1100); logo.classList.add('zoom-out'); logo.classList.remove('pulse'); }; })();很抱歉,如果未启用JavaScript,jfrog webapp无法正常工作。请启用它以继续。 这就是我的“settings.xml”文件包含的内容: ${security.getCurrentUsername()} ${security.getEscapedEncryptedPassword()!“password”} 中心的 ${security.getCurrentUsername()} ${security.getEscapedEncryptedPassword()!“password”} 快照 假的 中心的 libs发布 http://localhost:8082/ui/repos/tree/General/libs-本地发布 快照 libs快照 http://localhost:8082/ui/repos/tree/General/libs-快照本地 假的 中心的 libs发布 http://localhost:8082/ui/repos/tree/General/libs-本地发布 快照 libs快照 http://localhost:8082/ui/repos/tree/General/libs-快照本地 人工制品 人工制品
我以前看到过这样的情况,当时有一个公司代理阻止了我的请求。您能在settings.xml中检查一下是否需要代理吗I';当我尝试将Maven项目部署到Artifactory时,我会遇到这个错误 我已经尝试修复此错误好几天了,我尝试删除错误中描述的文件,但它不起作用,我尝试删除整个存储库文件夹,并再次使其不起作用。 未能更新元数据org.jfrog.test:multi:3.7-SNAPSHOT/maven-metadata.xml:无法分析元数据/root/.m2/repository/org/jfrog/test/multi/3.7-SNAPSHOT/maven-metadata-central.xml:意外标记 错误中描述的文件(maven metadata central.xml)包含以下信息: JFrog@keyframes心脏跳动{from{opacity:1}50%{opacity:0;transform:scale(.8)}到{opacity:0;transform:scale(.8)}@keyframes心跳{from{transform:scale3d(1,1,1,1)}50%{transform:scale3d(1.15,1.15)}到{transform:scale3d(1,1,1)}。撞击心脏容器{显示:无;对齐项目:中心;对齐内容:中心;位置:绝对;左:0;右:0;顶部:0;底部:0;z索引:999999999;背景:线性渐变(132.49度,41485714.17%,#252831 83.36%)}。撞击心脏容器。显示飞溅{显示:flex}。徽标{宽度:130px;-webkit背面可见性:隐藏;-ms变换:translateZ(0);-webkit transform:translateZ(0);transform:translateZ(0)}.logo.pulse{animation:heartbeat 1.7s infinite}.logo.zoom{animation:heartbeatOut 1s forwards}(函数(){ const splashScreen=document.querySelector(“.pounding heart container”); const logo=document.querySelector('.logo'); window.showSplashPulse=函数(){ splashScreen.classList.add('show-splash'); }; window.hideSplashPulse=函数(){ setTimeout(函数(){ splashScreen.classList.remove('show-splash'); }, 1100); logo.classList.add('zoom-out'); logo.classList.remove('pulse'); }; })();很抱歉,如果未启用JavaScript,jfrog webapp无法正常工作。请启用它以继续。 这就是我的“settings.xml”文件包含的内容: ${security.getCurrentUsername()} ${security.getEscapedEncryptedPassword()!“password”} 中心的 ${security.getCurrentUsername()} ${security.getEscapedEncryptedPassword()!“password”} 快照 假的 中心的 libs发布 http://localhost:8082/ui/repos/tree/General/libs-本地发布 快照 libs快照 http://localhost:8082/ui/repos/tree/General/libs-快照本地 假的 中心的 libs发布 http://localhost:8082/ui/repos/tree/General/libs-本地发布 快照 libs快照 http://localhost:8082/ui/repos/tree/General/libs-快照本地 人工制品 人工制品,javascript,linux,maven,deployment,artifactory,Javascript,Linux,Maven,Deployment,Artifactory,我以前看到过这样的情况,当时有一个公司代理阻止了我的请求。您能在settings.xml中检查一下是否需要代理吗 发生的情况是代理返回html响应,这就是您看到此错误的原因。问题在于您在maven设置中使用的存储库URL。 您当前正在使用适合web浏览的Artifactory web UI的URL: http://localhost:8082/ui/repos/tree/General/libs-release-local 然而,您应该使用以下 http://localhost:8081/ar
发生的情况是代理返回html响应,这就是您看到此错误的原因。问题在于您在maven设置中使用的存储库URL。
您当前正在使用适合web浏览的Artifactory web UI的URL:
http://localhost:8082/ui/repos/tree/General/libs-release-local
然而,您应该使用以下
http://localhost:8081/artifactory/libs-release-local
为了更简单地配置Maven,我建议遵循Artifactory文档的部分谢谢您的回答,不,不,实际上,“settings.xml”文件不包含任何关于代理的内容。也许您需要设置代理。也就是说,如果您在settings.xml中有代理,那么您可能需要在settings.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>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"password"}</password>
<id>central</id>
</server>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"password"}</password>
<id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://localhost:8082/ui/repos/tree/General/libs-release-local</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://localhost:8082/ui/repos/tree/General/libs-snapshot-local</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://localhost:8082/ui/repos/tree/General/libs-release-local</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://localhost:8082/ui/repos/tree/General/libs-snapshot-local</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
http://localhost:8082/ui/repos/tree/General/libs-release-local
http://localhost:8081/artifactory/libs-release-local