我正在使用nexus 1.9.2 . 我设置了一个代理仓库到远程位置(可以通过http://somelocation.com访问) . 我将此代理仓库添加到Nexus ' Public Repositories group. My maven'的settings.xml设置为使用Nexus(在 <mirror /> 部分) .

当我通过网络浏览器登录Nexus并点击这个新添加的代理仓库然后浏览远程选项卡时,我可以看到所有工件 . 但是,当我单击选项卡浏览存储或浏览索引时,我看不到任何工件 .

当我做mvn clean install时,我确实丢失了工件,它根本不想从远程站点获取 .

我得到以下内容

1缺少所需的工件 . for artifact:com.somelocation:someserverapp:jar:1.1.0-SNAPSHOT来自指定的远程存储库:release-repo(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)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 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 deploy:deploy-file -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

有什么想法吗?