使用 Nexus 时无法编译 Spring Roo (1.2.3.RELEASE) 项目。
mvn 说找不到 roo.annotations:jar
[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]
但是这个 jar 已经在本地 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作为代理存储库没有帮助)
更新:添加图片。在左侧添加 spring-roo-repository 没有帮助。下面的两个长答案也无济于事。