【发布时间】:2017-03-20 16:45:58
【问题描述】:
我正在尝试恢复我的旧项目。我想使用 maven 并且我想添加 AbsoluteLayout 依赖项。我是 maven 的新手,所以我不知道出了什么问题。我发现这应该可行:
<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>AbsoluteLayout</artifactId>
<version>RELEASE802</version>
</dependency>
但我只收到此错误:
Failed to execute goal on project XXX: Could not resolve dependencies for project xx.xxxx:XXX:jar:1.0-SNAPSHOT: Failure to find org.netbeans.external:AbsoluteLayout:jar:RELEASE802 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
在此之后,我从计算机中的 netbeans 文件夹中手动添加了此依赖项。它正在工作。还有另一种方法如何添加此依赖项?我想将它包含在我的 pom 文件中。有什么想法吗?
【问题讨论】:
-
由于它不是公开可用的库(至少不在Maven central),您需要install it in your local repository。
-
嗨,它的公共图书馆和它为用户 Eric B 工作。有什么想法吗?
-
它在 Netbeans 存储库中可用,请参阅我的回答。
标签: java maven netbeans absolutelayout