Nexus Proxy Repo 不想获取
我正在使用 Nexus 1.9.2。我将代理存储库设置到远程位置(可以通过 http://somelocation.com 访问)。我将此代理存储库添加到 Nexus 的公共存储库组中。我的 maven 的 settings.xml 设置为使用 Nexus(在
部分)。
当我通过网络浏览器登录 Nexus 并单击这个新添加的代理存储库,然后单击“浏览远程”选项卡时,我可以看到所有工件。但是,当我单击“浏览存储”或“浏览索引”选项卡时,我没有看到任何工件。
当我执行 mvn clean install 时,我确实丢失了工件,它只是不想从远程站点获取。
我得到以下信息
缺少 1 个必需的工件。
对于工件: com.somelocation:someserverapp:jar:1.1.0-SNAPSHOT
来自指定的远程存储库: 发布仓库(http://localrepo:8081/nexus/content/groups/public),
位于 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711) 在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) 在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) 在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) 在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) 在 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) 在 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) 在 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) 在 org.apache.maven.cli.MavenCli.main(MavenCli.java:362) 在 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 在 org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 在 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 在 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
引起:org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:缺失:
1) com.somelocation:somelocation-networking-packet:jar:1.0.0
尝试从项目网站手动下载文件。
然后,使用以下命令安装它: mvn install:install-file -DgroupId=com.somelocation -DartifactId=somelocation-networking-packet -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file
或者,如果您托管自己的存储库,则可以在那里部署该文件: mvn 部署:部署文件 -DgroupId=com.somelocation -DartifactId=somelocation-networking-packet -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id ]
依赖路径: 1) com.somelocation:someserverapp:jar:1.1.0-SNAPSHOT 2) com.somelocation:somelocation-networking-packet:jar:1.0.0
有什么想法吗?
I am using nexus 1.9.2. I setup a proxy repo to a remote location (which can be accessed via http://somelocation.com). I added this proxy repo to Nexus' Public Repositories group. My maven's settings.xml is set to use Nexus (in the <mirror />
section).
When I login to Nexus via a web browser and click on this newly added proxy repo and then to Browse Remote tab I can see all the artifacts. However, when I click the tabs Browse Storage or Browse Index I do not see any artifact.
When I do mvn clean install I do get missing artifact, it simply does not want to fetch from the remote site.
I am getting the following
1 required artifact is missing.
for artifact:
com.somelocation:someserverapp:jar:1.1.0-SNAPSHOTfrom the specified remote repositories:
release-repo (http://localrepo:8081/nexus/content/groups/public),at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
1) com.somelocation:somelocation-networking-packet:jar:1.0.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.somelocation -DartifactId=somelocation-networking-packet -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.somelocation -DartifactId=somelocation-networking-packet -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]Path to dependency:
1) com.somelocation:someserverapp:jar:1.1.0-SNAPSHOT
2) com.somelocation:somelocation-networking-packet:jar:1.0.0
Any ideas why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论