我已经安装了全新的 Nexus Repository OSS 3.3.2-02 。它预先配置了maven-central
存储库。在没有更改任何内容的情况下,我只抓取了访问此代理存储库的URL并将其添加到我的本地M2设置中。
当我尝试构建一些项目时,我的依赖项被正确获取并构建项目。以下是maven客户端日志的外观:
[INFO] ------------------------------------------------------------------------
[INFO] Building jiraBootcamp 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.atlassian.jira:jira-api:jar:7.2.2 is missing, no dependency information available
[WARNING] The POM for com.atlassian.plugin:atlassian-spring-scanner-annotation:jar:2.1.1 is missing, no dependency information available
[WARNING] The POM for com.atlassian.activeobjects:activeobjects-plugin:jar:1.2.3 is missing, no dependency information available
[WARNING] The POM for com.atlassian.plugins.rest:atlassian-rest-common:jar:1.0.2 is missing, no dependency information available
[WARNING] The POM for com.atlassian.sal:sal-api:jar:2.6.0 is missing, no dependency information available
Downloading: https://devtools.morosystems.cz/nexus/repository/maven-central/org/projectlombok/lombok/1.16.4/lombok-1.16.4.pom
Downloading: http://repo.maven.apache.org/maven2/org/projectlombok/lombok/1.16.4/lombok-1.16.4.pom
Downloaded: http://repo.maven.apache.org/maven2/org/projectlombok/lombok/1.16.4/lombok-1.16.4.pom (2 KB at 10.5 KB/sec)
问题在于,当我浏览Nexus UI时,我希望 Lombok 库为:
但是,这不起作用,因为视图为空,搜索什么也找不到。
拜托,你能帮我找到什么问题吗?这是我第一次配置Nexus OSS 3,因此解决方案可能非常简单。
非常感谢!
答案 0 :(得分:0)
您的maven日志显示该组件未从Nexus下载:
下载:http://repo.maven.apache.org/maven2/org/projectlombok/lombok/1.16.4/lombok-1.16.4.pom
将Nexus设置为Maven中所有存储库的镜像,如下所示:
http://books.sonatype.com/nexus-book/reference3/maven.html#maven-sect-single-group
这将阻止Maven访问Nexus以外的存储库。