【发布时间】: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