使用Nexus時無法編譯Spring Roo(1.2.3.RELEASE)項目。使用Nexus時無法編譯Spring Roo項目
MVN說找不到roo.annotations:罐子
[ERROR] Failed to execute goal on project Roo123: Could not resolve dependencies for project com.example.roo:Roo123:jar:0.1.0.BUILD-SNAPSHOT: Failure to find org.springframework.roo:org.springframework.roo.annotations:jar:1.2.3.RELEASE in http://192.168.16.232:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
但是這個罐子已經在本地Maven倉庫。
當禁用Nexus時,通過重命名.m2 \ settings.xml,它工作正常。
的settings.xml剛剛1個鏡配置
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://192.168.16.232:8081/nexus/content/groups/public</url>
</mirror>
如何配置的Nexus?
(添加http://spring-roo-repository.springsource.org/release作爲代理庫並不會幫助)
UPDATE:添加圖片。在左側添加spring-roo-repository無濟於事。 以下兩個長答案也無濟於事。
我不明白。爲什麼我需要創建配置文件並將其激活? 什麼意思中央 什麼時候一切都已經在content/groups/public?並刪除本地存儲庫(如果它沒有損壞)通常是不好的建議。 –