【问题标题】:Failure to find com.atlassian:atlassian-localhost:jar:1.1.0找不到 com.atlassian:atlassian-localhost:jar:1.1.0
【发布时间】:2020-01-10 13:54:41
【问题描述】:

我正在尝试在 pom.xml 文件中添加 maven 依赖 atlassian-mail。


    <repositories>
        <repository>
            <id>atlassian</id>
            <name>Atlassian Repository</name>
            <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
        </repository>
    </repositories>


    <dependency>
        <groupId>com.atlassian.mail</groupId>
        <artifactId>atlassian-mail</artifactId>
        <version>5.0.1</version>
    </dependency>

但我收到以下错误:

描述资源路径位置类型 容器“Maven 依赖项”引用了不存在的库“C:\Users\jmvmarti.m2\repository\com\atlassian\atlassian-localhost\1.1.0\atlassian-localhost-1.1.0.jar”027_mycoolwebapp 构建路径构建路径问题

当我在 Maven build... 中执行 pom.xml 时,将目标定义为 clean package (我在某处读过可以解决问题,但不起作用)。我收到以下错误消息:

<pre>
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< com.luv2code:mycoolwebapp >----------------------
[INFO] Building mycoolwebapp Maven Webapp 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for com.atlassian:atlassian-localhost:jar:1.1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.991 s
[INFO] Finished at: 2020-01-10T10:45:31-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mycoolwebapp: Could not resolve dependencies for project com.luv2code:mycoolwebapp:war:0.0.1-SNAPSHOT: Failure to find com.atlassian:atlassian-localhost:jar:1.1.0 in https://maven.atlassian.com/content/repositories/atlassian-public/ was cached in the local repository, resolution will not be reattempted until the update interval of atlassian has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
</pre>

【问题讨论】:

    标签: java maven dependencies repository


    【解决方案1】:

    我也遇到了同样的问题。

    您可能知道也可能不知道,Atlassian-localhost-1.1.0.jar 不会出现在您引用的 atlassian 存储库 URL 中的任何位置。所以这个错误至少对于为什么抛出它是有意义的。对于在他们自己的存储库中不包括依赖 jar 文件这样大的东西,我很困惑他们为什么这样做(或者我应该说,没有这样做?)。

    我可以建议对我有用的唯一解决方法是从外部源手动下载 jar: https://nexus.xebialabs.com/nexus/content/groups/public/com/atlassian/atlassian-localhost/1.1.0/

    并手动将其拉入您的本地存储库:

    (C:\Users\jmvmarti.m2\repository\com\atlassian\atlassian-localhost)

    之后,再次更新您的 Maven 项目,应该就可以了。

    【讨论】:

      猜你喜欢
      • 2017-10-17
      • 1970-01-01
      • 2019-04-04
      • 1970-01-01
      • 2021-07-05
      • 2012-05-24
      • 2012-07-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多