簡體   English   中英

intellij無法下載maven依賴

[英]Unable to download maven dependencies in intellij

當我嘗試在遇到此問題的 intellij 中使用mvn clean install下載 maven 依賴項時。

[ERROR] Failed to execute goal on project IAPORTAL: Could not resolve dependencies for project SAMPLE:SAMPLE:war:${bambooBuildNumber}: Failed to collect dependencies at or
g.drools:drools-compiler:jar:6.0.1.Final: Failed to read artifact descriptor for org.drools:drools-compiler:jar:6.0.1.Final: Could not transfer artifact org.jboss.dashboard-bu
ilder:dashboard-builder-bom:pom:6.0.1.Final from/to mvn repository (https://mvnrepository.com/): authorization failed for https://mvnrepository.com/org/jboss/dashboard-builder/dashboard-builder-bom/6.0.1.Final/dashboard-builder-bom-6.0.1.Final.pom, status: 403 Forbidden -> [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

我們如何解決這個問題?

你的依賴似乎是錯誤的。

查看https://mvnrepository.com/artifact/org.jboss.dashboard-builder/dashboard-builder-bom/6.0.1.Final以了解如何正確設置依賴項。

你的 pom 應該包含這個依賴

<dependency>
    <groupId>org.jboss.dashboard-builder</groupId>
    <artifactId>dashboard-builder-bom</artifactId>
    <version>6.0.1.Final</version>
    <type>pom</type>
</dependency>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM