I deployed a sonatype nexus server inside my LAN , mapping some remote repositories to my public repositories :
First question is , why these repositories not sync with the "real" repositories ? For example , I mapped maven central (http://repo1.maven.org/maven2) to "central" , but when I browse http://smallufo:8081/nexus/content/repositories/central/org/springframework/ , the packages are not complete , in http://repo2.maven.org/maven2/org/springframework/ , there are tons of artifacts , but I only have some of them :
And versions are old ... ex : spring-core is only 2.5.6.SEC01 , but the latest version is 3.0.2.RELEASE. And my maven client seems can only find the old artifacts ...
"central" is a proxy directory , it should be the same with the remote server. I tried to "Expire Cache" , "ReIndex" , "Incremental ReIndex" the whole "central" :
After a long time with almost 100% java process load , the situation seems not better , just add some artifacts ... not reflecting the real "Maven Central" data...
Second question , what's difference with "Expire Cache" , "ReIndex" , "Incremental ReIndex" ?
Even I can "search" spring-core.3.0.2.RELEASE , my m2eclipse still cannot find it :
I can also see the spring-core-3.0.2.RELEASE in the "index" , (but not available in "storage") :
But why m2eclipse cannot make use of it ? it seems m2eclipse can only install artifacts in the storage , if this is how nexus works , how do I "force" download spring-core-3.0.2.RELEASE to nexus's storage ?
How do I solve these strange incompatibilities ? Thanks a lot !
-- updated --
It seems it is problem with m2eclipse and maven-3.0-beta1.
After I change back to maven 2.2.1 , everything works fine now.
Sorry for the disturbance.