Java 找不到com.atlassian:atlassian localhost:jar:1.1.0

Java 找不到com.atlassian:atlassian localhost:jar:1.1.0,java,maven,dependencies,repository,Java,Maven,Dependencies,Repository,我试图在pom.xml文件中添加maven依赖项atlassian mail <repositories> <repository> <id>atlassian</id> <name>Atlassian Repository</name> <url>https://maven.atlassian.com/conten

我试图在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>

<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>

大西洋
大西洋存储库
https://maven.atlassian.com/content/repositories/atlassian-public/

com.atlassian.mail
大西洋邮件
5.0.1
但我得到了以下错误:

说明资源路径位置类型 容器“Maven Dependencies”引用了不存在的库“C:\Users\jmvmarti.m2\repository\com\atlassian\atlassian localhost\1.1.0\atlassian-localhost-1.1.0.jar”027\u MyColWebApp生成路径生成路径问题

当我在as Maven build中执行pom.xml时。。。将目标定义为干净的包(我在某个地方读到了可以解决问题但不起作用的内容)。我收到以下错误消息:


[信息]正在扫描项目。。。
[信息]
[信息]--------------------------------------
[信息]正在构建MyColWebApp Maven Webapp 0.0.1-SNAPSHOT
[信息]------------------------------------[战争]---------------------------------
[警告]缺少com.atlassian:atlassian localhost:jar:1.1.0的POM,没有可用的依赖项信息
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:0.991秒
[信息]完成时间:2020-01-10T10:45:31-03:00
[信息]------------------------------------------------------------------------
[错误]无法对项目MyCollWebApp执行目标:无法解析项目com的依赖项。luv2code:MyCollWebApp:war:0.0.1-SNAPSHOT:在中找不到com.atlassian:atlassian localhost:jar:1.1.0https://maven.atlassian.com/content/repositories/atlassian-public/ 缓存在本地存储库中,在atlassian的更新间隔结束或强制更新之前,将不会重新尝试解析->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

我也遇到了同样的问题

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

我能建议的唯一可行方法是从外部源手动下载jar:

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

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

在那之后,再次更新您的Maven项目,然后就可以了

<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>