请教个问题,关于maven搭建私服的问题

157 views
Skip to first unread message

ink

unread,
Jun 22, 2012, 2:56:09 AM6/22/12
to mave...@googlegroups.com
Unable to update index for nexus|http://localhost:8081/nexus/content/groups/public: Resource nexus-maven-repository-index.properties does not exist
 
使用nexus搭建的本地私服,私服索引已更新.在setting.xml中配置如下:
 <mirrors>
     <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <name>my rep</name>
    </mirror>
  </mirrors>
  
   <profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<name>nexus</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
        <pluginRepositories>
<pluginRepository>
<id>central</id>
<name>nexus</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
 </profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
 
配置所有的构件下载地址从私服下载,出现以上描述问题
Unable to update index for nexus|http://localhost:8081/nexus/content/groups/public: Resource nexus-maven-repository-index.properties does not exist
 
对于任何帮助都非常感谢。

jw xiaojw

unread,
Jun 24, 2012, 7:58:36 PM6/24/12
to mave...@googlegroups.com
您能否完整把settings.xml中的内容列出呢?不要只列一部分。



以 Nexus 2.0.5.zip形式安装的nexus,在${user.home}/sonatype-work/nexus/logs/下面有nexus运行的完整日志。
日志目录中有出错信息的。


win7下
这个目录可能是在C:\Users\Administrator\sonatype-work\nexus\logs\

具体路径我也不确定了,因为我的电脑安装nexus的方式是tomcat7+nexus webapp包的形式。
并且我在nexus webapp的WEB-INF中plexus.properties文件中对这个路径做了重新修改。


Unable to update index for nexus|http://localhost:8081/nexus/content/groups/public: Resource nexus-maven-repository-index.properties does not exist

这个出错的信息太简单了。请看看您本机电脑上的nexus  log文件中保存的日志信息。


这个问题我好像也遇见过,当时settings.xml没问题,按照<<maven实战>>P162页写的。但是没有更新索引成功。因为我所在的网络不好,访问国外的仓库非常慢。有些国外的maven仓库竟然被我的网络服务商给封了。
访问国外的网站要速度快的话,最好用vpn.我从广电的网络更换为联通的网络之后,网络好多了。

我能力有限,只能帮这么多了。不懂的,还可以来maven中文QQ群里问。

--
您收到此邮件是因为您订阅了 Google 网上论坛的“Maven中文”论坛。
要在网络上查看此讨论,请访问 https://groups.google.com/d/msg/maven-zh/-/Pxw4PKNWQdEJ
要向此网上论坛发帖,请发送电子邮件至 mave...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 maven-zh+u...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/maven-zh?hl=zh-CN 访问此网上论坛。

Reply all
Reply to author
Forward
0 new messages