gpt4 book ai didi

maven - 从Gradle发布到Nexus时如何解决此错误

转载 作者:行者123 更新时间:2023-12-03 03:09:37 26 4
gpt4 key购买 nike

我遇到了错误

Error deploying artifact 'au.com.company:library:jar': Error deploying artifact: Resource to deploy not found: File: http://nexus:8081/content/repositories/snapshots/au/com/company/library/2.1-SNAPSHOT/library-2.1-20140925.222243-1.jar does not exist

使用以下命令从Gradle发布到Maven时:
gradle publish

是什么原因造成的?

最佳答案

因此,这是由无效的URL引起的。我在build.gradle文件中有这个:

http://nexus:8081/content/repositories/snapshots

我需要这个:
http://nexus:8081/nexus/content/repositories/snapshots

您必须仔细查看--debug日志才能看到此错误:
[DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@274364f26 pairs: {null: HTTP/1.1 404 Not Found}{Date: Thu, 25 Sep 2014 22:25:16 GMT}{Cache-Control: must-revalidate,no-cache,no-store}{Content-Type: text/html;charset=ISO-8859-1}{Content-Length: 1370}{Server: Jetty(8.1.11.v20130520)}

关于maven - 从Gradle发布到Nexus时如何解决此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26049251/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com