开发者

internal maven repo index won't update in m2eclipse

I have a remote maven repo set up and can successfully upload artifacts and download via POMs. I also see the repo listed along with maven central in my m2eclipse global 'Maven Repositories'.

My problem is that while Maven Central is browsable and updatable in m2eclipse, my internal one is not and when it tries to update I get this:

"Unable to update index for Nexus|http://www.c3works.com:8081/nexus-webapp-1.9.1.1/content/groups/public"

Putting that url in a browser does work, though.

Any ideas how to make m2eclipse to index properly? Thanks!

Here is my .m2/settings.xml:

    开发者_Python百科<settings>
<mirrors> 
 <mirror>
    <id>Nexus</id> 
    <name>Nexus Public Mirror</name> 
    <url>http://www.c3works.com:8081/nexus-webapp-1.9.1.1/content/groups/public </url> 
        <mirrorOf>*</mirrorOf>
</mirror> 
</mirrors>
</settings>


I was able to fix it by launching the Nexus webapp and I choose repair index and rebuild index on the Public Repository Group.

I believe the issue had to deal with a non-existent index or a bad index. Once the index exists then the m2eclipse plugin will be able to rebuild/update index in Maven Repository Eclipse view.


It appears as if you are behind a proxy server. If so, please configure eclipse and Nexus to use the proxy settings and try.


I also experienced this issue, very annoying. The solution is as above, go to the Nexus web app and repair index and rebuild index. Then do a rebuild index within the Maven Repositories view in eclipse.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜