|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Maven tries to download snapshot instead of release versionHello,
We set up Nexus with two groups (public and public-snapshots), one for releases and internal (hosted) snapshots, one for external (proxied) snapshot. By default, our settings files are configured to use the public group only. <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://myserver/nexus/content/groups/public</url> </mirror> I must also mention that at the beginning we had only one group as suggested in the book that also included external snapshot (Apache, Codehaus), but we did not really like this setup. The problem now is that when I execute "mvn archetype:generate", Maven tries to download the latest snapshot of the plugin, which Nexus of course won't deliver. When I browse the public group in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only metadata in it. Why does a snapshot show up there at all? I suspect because in our original configuration the public group would also serve snapshots. So, how can this be remedied? I tried to rename the public folder in the Nexus storage area, but this did not help. Attached are Maven and Nexus logs. Thanks, Reinhard >mvn archetype:generate [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] snapshot org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: checking for updates from central Downloading: http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom Downloading: http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar [INFO] Unable to find resource 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' in repo sitory central (http://central) [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating as non-aggregator. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] [INFO] ------------------------------------------------------------------------ Downloading: http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar [INFO] Unable to find resource 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' in repo sitory central (http://central) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifac t from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch-SN APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT from the specified remote repositories: nexus (http://myhost/nexus/content/groups/public) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT from the specified remote repositories: nexus (http://myhost/nexus/content/groups/public) 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - o.s.p.r.r.ManagedPl~:content - Got exception during processing GET http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar in repository public at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) at org.restlet.resource.Resource.getRepresentation(Resource.java:303) at org.restlet.resource.Resource.handleGet(Resource.java:465) at org.restlet.Finder.handle(Finder.java:353) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log - RESPONSE /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar 404 --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Maven tries to download snapshot instead of release versionWhat is this 2.0-alpha-5-parent-patch version? This seems like
something you might have patched internally which isn't loaded into Nexus. Either way, Maven will resolve the plugins via the metadata and take the LATEST version. This could be a snapshot if you've added the snapshot repos to our groups since all the metadata.xml's are merged from all the repos before handing them to Maven. You can read more about this process here: http://www.sonatype.com/people/2008/04/maven-209-released/ On Tue, Oct 20, 2009 at 6:35 AM, Reinhard Nägele <reinhard.naegele@...> wrote: > Hello, > > We set up Nexus with two groups (public and public-snapshots), one for > releases and internal (hosted) snapshots, one for external (proxied) > snapshot. By default, our settings files are configured to use the public > group only. > > <mirror> > <id>nexus</id> > <mirrorOf>*</mirrorOf> > <url>http://myserver/nexus/content/groups/public</url> > </mirror> > > I must also mention that at the beginning we had only one group as suggested > in the book that also included external snapshot (Apache, Codehaus), but we > did not really like this setup. The problem now is that when I execute "mvn > archetype:generate", Maven tries to download the latest snapshot of the > plugin, which Nexus of course won't deliver. When I browse the public group > in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only > metadata in it. Why does a snapshot show up there at all? I suspect because > in our original configuration the public group would also serve snapshots. > So, how can this be remedied? I tried to rename the public folder in the > Nexus storage area, but this did not help. > > Attached are Maven and Nexus logs. > > Thanks, > Reinhard > > >>mvn archetype:generate > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] snapshot > org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: > checking for updates from central > Downloading: > http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa > tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom > Downloading: > http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa > tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar > [INFO] Unable to find resource > 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' > in repo > sitory central (http://central) > [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating as > non-aggregator. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Default Project > [INFO] task-segment: [archetype:generate] > [INFO] > ------------------------------------------------------------------------ > Downloading: > http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa > tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar > [INFO] Unable to find resource > 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' > in repo > sitory central (http://central) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] A required plugin was not found: Plugin could not be found - check > that the goal name is correct: Unable to download the artifac > t from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.maven.plugins > -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- > SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins > -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch-SN > APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] > -DrepositoryId=[id] > > > org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT > > from the specified remote repositories: > nexus (http://myhost/nexus/content/groups/public) > > > org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT > > from the specified remote repositories: > nexus (http://myhost/nexus/content/groups/public) > > 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - o.s.p.r.r.ManagedPl~:content > - Got exception during processing GET > http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar > org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID > public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar > in repository public > at > org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) > at > org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) > at > org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) > at > org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) > at > org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) > at > org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) > at > org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) > at org.restlet.resource.Resource.getRepresentation(Resource.java:303) > at org.restlet.resource.Resource.handleGet(Resource.java:465) > at org.restlet.Finder.handle(Finder.java:353) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Router.handle(Router.java:504) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at > org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) > at > com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) > at org.restlet.Application.handle(Application.java:341) > at > org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Router.handle(Router.java:504) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at org.restlet.Router.handle(Router.java:504) > at org.restlet.Filter.doHandle(Filter.java:150) > at org.restlet.Filter.handle(Filter.java:195) > at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) > at org.restlet.Component.handle(Component.java:673) > at org.restlet.Server.handle(Server.java:331) > at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) > at > com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) > at > com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) > at > org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) > at > org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) > at > org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) > at > org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) > at > org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) > at > org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) > at > org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) > at > org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) > at > org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) > at > org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) > at > org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:320) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) > 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log > - RESPONSE > /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar > 404 > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Maven tries to download snapshot instead of release versionAttached is a screenshot that shows that the 2.0-alpha-5-parent-patch
version comes from the Apache Snapshot repository. This repository is *not* included in our public group. However, when I browse the public repo group in Nexus, I can see metadata that identify this version as the LATEST one. Now, how do I get rid of these metadata? I now deleted the whole content of the hosted Apache Snapshots Repository and tried to rebuild metadata, which failed (status BROKEN, see attached log file). The weird thing is that there is a folder 2.0-alpha-5-SNAPSHOT, but the metadata lists 2.0-alpha-5-parent-patch-SNAPSHOT. In fact, their should be no snapshots at all from the Apache Snapshot Repo because it is not included in our public group. As I said, we removed the Apache Snapshot Repo from that group quite a while ago. It seems Nexus does not really clean up after such a removal. Brian Fox schrieb: > What is this 2.0-alpha-5-parent-patch version? This seems like > something you might have patched internally which isn't loaded into > Nexus. > > Either way, Maven will resolve the plugins via the metadata and take > the LATEST version. This could be a snapshot if you've added the > snapshot repos to our groups since all the metadata.xml's are merged > from all the repos before handing them to Maven. You can read more > about this process here: > http://www.sonatype.com/people/2008/04/maven-209-released/ > > On Tue, Oct 20, 2009 at 6:35 AM, Reinhard Nägele > <reinhard.naegele@...> wrote: > >> Hello, >> >> We set up Nexus with two groups (public and public-snapshots), one for >> releases and internal (hosted) snapshots, one for external (proxied) >> snapshot. By default, our settings files are configured to use the public >> group only. >> >> <mirror> >> <id>nexus</id> >> <mirrorOf>*</mirrorOf> >> <url>http://myserver/nexus/content/groups/public</url> >> </mirror> >> >> I must also mention that at the beginning we had only one group as suggested >> in the book that also included external snapshot (Apache, Codehaus), but we >> did not really like this setup. The problem now is that when I execute "mvn >> archetype:generate", Maven tries to download the latest snapshot of the >> plugin, which Nexus of course won't deliver. When I browse the public group >> in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only >> metadata in it. Why does a snapshot show up there at all? I suspect because >> in our original configuration the public group would also serve snapshots. >> So, how can this be remedied? I tried to rename the public folder in the >> Nexus storage area, but this did not help. >> >> Attached are Maven and Nexus logs. >> >> Thanks, >> Reinhard >> >> >> >>> mvn archetype:generate >>> >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> [INFO] snapshot >> org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: >> checking for updates from central >> Downloading: >> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom >> Downloading: >> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >> [INFO] Unable to find resource >> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >> in repo >> sitory central (http://central) >> [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating as >> non-aggregator. >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Maven Default Project >> [INFO] task-segment: [archetype:generate] >> [INFO] >> ------------------------------------------------------------------------ >> Downloading: >> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >> [INFO] Unable to find resource >> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >> in repo >> sitory central (http://central) >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] A required plugin was not found: Plugin could not be found - check >> that the goal name is correct: Unable to download the artifac >> t from any repository >> >> Try downloading the file manually from the project website. >> >> Then, install it using the command: >> mvn install:install-file -DgroupId=org.apache.maven.plugins >> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- >> SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file >> >> Alternatively, if you host your own repository you can deploy the file >> there: >> mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins >> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch-SN >> APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] >> -DrepositoryId=[id] >> >> >> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >> >> from the specified remote repositories: >> nexus (http://myhost/nexus/content/groups/public) >> >> >> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >> >> from the specified remote repositories: >> nexus (http://myhost/nexus/content/groups/public) >> >> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - o.s.p.r.r.ManagedPl~:content >> - Got exception during processing GET >> http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >> public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >> in repository public >> at >> org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) >> at >> org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) >> at >> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >> at >> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) >> at >> org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) >> at >> org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) >> at >> org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) >> at org.restlet.resource.Resource.getRepresentation(Resource.java:303) >> at org.restlet.resource.Resource.handleGet(Resource.java:465) >> at org.restlet.Finder.handle(Finder.java:353) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Router.handle(Router.java:504) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at >> org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >> at >> com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) >> at org.restlet.Application.handle(Application.java:341) >> at >> org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Router.handle(Router.java:504) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at org.restlet.Router.handle(Router.java:504) >> at org.restlet.Filter.doHandle(Filter.java:150) >> at org.restlet.Filter.handle(Filter.java:195) >> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >> at org.restlet.Component.handle(Component.java:673) >> at org.restlet.Server.handle(Server.java:331) >> at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) >> at >> com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) >> at >> com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) >> at >> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) >> at >> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >> at >> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >> at >> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >> at >> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >> at >> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >> at >> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >> at >> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >> at >> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >> at >> org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) >> at >> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) >> at >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >> at >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >> at >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) >> at >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) >> at >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >> at org.mortbay.jetty.Server.handle(Server.java:320) >> at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) >> at >> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) >> at >> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) >> at >> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) >> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log >> - RESPONSE >> /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >> 404 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> For additional commands, e-mail: nexus-user-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > > 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default - Rebuilding maven metadata of repository group Public Repositories from path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process started on Tue Oct 20 15:28:18 CEST 2009, not yet finished. 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - Recreating Maven2 metadata in repository ID='releases' from path='/org/apache/maven/plugins/maven-archetype-plugin/' 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default - Start walking on ResourceStore releases from path '/org/apache/maven/plugins/maven-archetype-plugin/'. 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - retrieveItem() :: releases:/org/apache/maven/plugins/maven-archetype-plugin/ 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - releases:/org/apache/maven/plugins/maven-archetype-plugin/ :: localOnly=true, remoteOnly=false 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.s.l.LocalRe~:file - /org/apache/maven/plugins/maven-archetype-plugin/ --> /exports/home/nexus/nexus-webapp-1.3.6/bin/jsw/linux-x86-32/../../../../sonatype-work/nexus/storage/releases/org/apache/maven/plugins/maven-archetype-plugin 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ not found in local storage. 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ does not exist locally and cannot go remote, throwing ItemNotFoundException. 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 - releases retrieveItem() :: NOT FOUND releases:/org/apache/maven/plugins/maven-archetype-plugin/ 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default - ItemNotFound where walking should start, bailing out. org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository releases at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) at org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) at org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.w.Walker:default - Aborted walking on repository ID='releases' from path='/org/apache/maven/plugins/maven-archetype-plugin/', cause: Item not found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository releases 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default - Rebuilding maven metadata of repository group Public Repositories from path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process started on Tue Oct 20 15:28:18 CEST 2009, finished on Tue Oct 20 15:28:18 CEST 2009 with error. Error message is: org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on repository ID='releases' from path='/org/apache/maven/plugins/maven-archetype-plugin/'. Strack trace: org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='releases' from path='/org/apache/maven/plugins/maven-archetype-plugin/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) at org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) at org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository releases at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) ... 12 more org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='releases' from path='/org/apache/maven/plugins/maven-archetype-plugin/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) at org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) at org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository releases at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) ... 12 more --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Maven tries to download snapshot instead of release versionWe'll have to check that they do get removed in 1.4. To force it go to
the storage folder (sonatype-work/nexus/storage/public) and manually remove anything stored there for this artifact. On Tue, Oct 20, 2009 at 9:36 AM, Reinhard Nägele <reinhard.naegele@...> wrote: > Attached is a screenshot that shows that the 2.0-alpha-5-parent-patch > version comes from the Apache Snapshot repository. This repository is *not* > included in our public group. However, when I browse the public repo group > in Nexus, I can see metadata that identify this version as the LATEST one. > Now, how do I get rid of these metadata? I now deleted the whole content of > the hosted Apache Snapshots Repository and tried to rebuild metadata, which > failed (status BROKEN, see attached log file). > > The weird thing is that there is a folder 2.0-alpha-5-SNAPSHOT, but the > metadata lists 2.0-alpha-5-parent-patch-SNAPSHOT. In fact, their should be > no snapshots at all from the Apache Snapshot Repo because it is not included > in our public group. As I said, we removed the Apache Snapshot Repo from > that group quite a while ago. It seems Nexus does not really clean up after > such a removal. > > > Brian Fox schrieb: >> >> What is this 2.0-alpha-5-parent-patch version? This seems like >> something you might have patched internally which isn't loaded into >> Nexus. >> >> Either way, Maven will resolve the plugins via the metadata and take >> the LATEST version. This could be a snapshot if you've added the >> snapshot repos to our groups since all the metadata.xml's are merged >> from all the repos before handing them to Maven. You can read more >> about this process here: >> http://www.sonatype.com/people/2008/04/maven-209-released/ >> >> On Tue, Oct 20, 2009 at 6:35 AM, Reinhard Nägele >> <reinhard.naegele@...> wrote: >> >>> >>> Hello, >>> >>> We set up Nexus with two groups (public and public-snapshots), one for >>> releases and internal (hosted) snapshots, one for external (proxied) >>> snapshot. By default, our settings files are configured to use the public >>> group only. >>> >>> <mirror> >>> <id>nexus</id> >>> <mirrorOf>*</mirrorOf> >>> <url>http://myserver/nexus/content/groups/public</url> >>> </mirror> >>> >>> I must also mention that at the beginning we had only one group as >>> suggested >>> in the book that also included external snapshot (Apache, Codehaus), but >>> we >>> did not really like this setup. The problem now is that when I execute >>> "mvn >>> archetype:generate", Maven tries to download the latest snapshot of the >>> plugin, which Nexus of course won't deliver. When I browse the public >>> group >>> in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only >>> metadata in it. Why does a snapshot show up there at all? I suspect >>> because >>> in our original configuration the public group would also serve >>> snapshots. >>> So, how can this be remedied? I tried to rename the public folder in the >>> Nexus storage area, but this did not help. >>> >>> Attached are Maven and Nexus logs. >>> >>> Thanks, >>> Reinhard >>> >>> >>> >>>> >>>> mvn archetype:generate >>>> >>> >>> [INFO] Scanning for projects... >>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>> [INFO] snapshot >>> >>> org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: >>> checking for updates from central >>> Downloading: >>> >>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom >>> Downloading: >>> >>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>> [INFO] Unable to find resource >>> >>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>> in repo >>> sitory central (http://central) >>> [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating >>> as >>> non-aggregator. >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building Maven Default Project >>> [INFO] task-segment: [archetype:generate] >>> [INFO] >>> ------------------------------------------------------------------------ >>> Downloading: >>> >>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>> [INFO] Unable to find resource >>> >>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>> in repo >>> sitory central (http://central) >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] A required plugin was not found: Plugin could not be found - check >>> that the goal name is correct: Unable to download the artifac >>> t from any repository >>> >>> Try downloading the file manually from the project website. >>> >>> Then, install it using the command: >>> mvn install:install-file -DgroupId=org.apache.maven.plugins >>> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- >>> SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file >>> >>> Alternatively, if you host your own repository you can deploy the file >>> there: >>> mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins >>> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch-SN >>> APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] >>> -DrepositoryId=[id] >>> >>> >>> >>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>> >>> from the specified remote repositories: >>> nexus (http://myhost/nexus/content/groups/public) >>> >>> >>> >>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>> >>> from the specified remote repositories: >>> nexus (http://myhost/nexus/content/groups/public) >>> >>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - >>> o.s.p.r.r.ManagedPl~:content >>> - Got exception during processing GET >>> >>> http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >>> >>> public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>> in repository public >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) >>> at >>> >>> org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) >>> at >>> >>> org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) >>> at >>> >>> org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) >>> at >>> >>> org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) >>> at >>> org.restlet.resource.Resource.getRepresentation(Resource.java:303) >>> at org.restlet.resource.Resource.handleGet(Resource.java:465) >>> at org.restlet.Finder.handle(Finder.java:353) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Router.handle(Router.java:504) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at >>> >>> org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>> at >>> >>> com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) >>> at org.restlet.Application.handle(Application.java:341) >>> at >>> org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Router.handle(Router.java:504) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at org.restlet.Router.handle(Router.java:504) >>> at org.restlet.Filter.doHandle(Filter.java:150) >>> at org.restlet.Filter.handle(Filter.java:195) >>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>> at org.restlet.Component.handle(Component.java:673) >>> at org.restlet.Server.handle(Server.java:331) >>> at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) >>> at >>> >>> com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) >>> at >>> >>> com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>> at >>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) >>> at >>> >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) >>> at >>> >>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) >>> at >>> >>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>> at >>> >>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>> at >>> >>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>> at >>> >>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>> at >>> >>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>> at >>> >>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>> at >>> >>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>> at >>> >>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>> at >>> >>> org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) >>> at >>> >>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>> at >>> >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) >>> at >>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) >>> at >>> >>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >>> at >>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>> at >>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >>> at >>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) >>> at >>> >>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) >>> at >>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >>> at org.mortbay.jetty.Server.handle(Server.java:320) >>> at >>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) >>> at >>> >>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) >>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) >>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) >>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) >>> at >>> >>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) >>> at >>> >>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) >>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log >>> - RESPONSE >>> >>> /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>> 404 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>> For additional commands, e-mail: nexus-user-help@... >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> For additional commands, e-mail: nexus-user-help@... >> >> > > > 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default > - Rebuilding maven metadata of repository group Public Repositories from > path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process > started on Tue Oct 20 15:28:18 CEST 2009, not yet finished. > 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - Recreating Maven2 metadata in repository ID='releases' from > path='/org/apache/maven/plugins/maven-archetype-plugin/' > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default > - Start walking on ResourceStore releases from path > '/org/apache/maven/plugins/maven-archetype-plugin/'. > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - retrieveItem() :: > releases:/org/apache/maven/plugins/maven-archetype-plugin/ > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - releases:/org/apache/maven/plugins/maven-archetype-plugin/ :: > localOnly=true, remoteOnly=false > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.s.l.LocalRe~:file > - /org/apache/maven/plugins/maven-archetype-plugin/ --> > /exports/home/nexus/nexus-webapp-1.3.6/bin/jsw/linux-x86-32/../../../../sonatype-work/nexus/storage/releases/org/apache/maven/plugins/maven-archetype-plugin > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ not found > in local storage. > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ does not > exist locally and cannot go remote, throwing ItemNotFoundException. > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 > - releases retrieveItem() :: NOT FOUND > releases:/org/apache/maven/plugins/maven-archetype-plugin/ > 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default > - ItemNotFound where walking should start, bailing out. > org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID > releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository > releases > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) > at > org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) > at > org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) > at > org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) > at > org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) > at > org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) > at > org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) > at java.util.concurrent.FutureTask.run(FutureTask.java:123) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.w.Walker:default > - Aborted walking on repository ID='releases' from > path='/org/apache/maven/plugins/maven-archetype-plugin/', cause: Item not > found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in > repository releases > 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default > - Rebuilding maven metadata of repository group Public Repositories from > path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process > started on Tue Oct 20 15:28:18 CEST 2009, finished on Tue Oct 20 15:28:18 > CEST 2009 with error. Error message is: > org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on > repository ID='releases' from > path='/org/apache/maven/plugins/maven-archetype-plugin/'. Strack trace: > org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on > repository ID='releases' from > path='/org/apache/maven/plugins/maven-archetype-plugin/'. > at > org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) > at > org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) > at > org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) > at > org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) > at > org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) > at > org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) > at java.util.concurrent.FutureTask.run(FutureTask.java:123) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on > UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository > releases > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) > at > org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) > at > org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) > ... 12 more > > org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on > repository ID='releases' from > path='/org/apache/maven/plugins/maven-archetype-plugin/'. > at > org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) > at > org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) > at > org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) > at > org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) > at > org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) > at > org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) > at java.util.concurrent.FutureTask.run(FutureTask.java:123) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on > UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository > releases > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) > at > org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) > at > org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) > at > org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) > at > org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) > ... 12 more > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Maven tries to download snapshot instead of release versionWhen you browse the public group, are you _sure_ that the content you see is not coming from browser cache? Try to reload that metadata in browser (Ctrl+R or similar).
Also, check your local repo, since it may contain a metadata with snapshot reference, that maven "considers" fresh and uses in resolution...
Thanks, ~t~ On Tue, Oct 20, 2009 at 5:00 PM, Brian Fox <brianf@...> wrote: We'll have to check that they do get removed in 1.4. To force it go to |
|
|
Re: Maven tries to download snapshot instead of release versionDeleting from public did not help. I still had the wrong metadata.
Trying to recreate them still failed with the same error. So, I grepped for "2.0-alpha-5-parent-patch-SNAPSHOT" below the storage folder and found out that it came from the Terracotta Maven Repo, which we proxy. The only way to get rid of the problem was to delete this repo. This would then also fix the metadata. Brian Fox schrieb: > We'll have to check that they do get removed in 1.4. To force it go to > the storage folder (sonatype-work/nexus/storage/public) and manually > remove anything stored there for this artifact. > > On Tue, Oct 20, 2009 at 9:36 AM, Reinhard Nägele > <reinhard.naegele@...> wrote: > >> Attached is a screenshot that shows that the 2.0-alpha-5-parent-patch >> version comes from the Apache Snapshot repository. This repository is *not* >> included in our public group. However, when I browse the public repo group >> in Nexus, I can see metadata that identify this version as the LATEST one. >> Now, how do I get rid of these metadata? I now deleted the whole content of >> the hosted Apache Snapshots Repository and tried to rebuild metadata, which >> failed (status BROKEN, see attached log file). >> >> The weird thing is that there is a folder 2.0-alpha-5-SNAPSHOT, but the >> metadata lists 2.0-alpha-5-parent-patch-SNAPSHOT. In fact, their should be >> no snapshots at all from the Apache Snapshot Repo because it is not included >> in our public group. As I said, we removed the Apache Snapshot Repo from >> that group quite a while ago. It seems Nexus does not really clean up after >> such a removal. >> >> >> Brian Fox schrieb: >> >>> What is this 2.0-alpha-5-parent-patch version? This seems like >>> something you might have patched internally which isn't loaded into >>> Nexus. >>> >>> Either way, Maven will resolve the plugins via the metadata and take >>> the LATEST version. This could be a snapshot if you've added the >>> snapshot repos to our groups since all the metadata.xml's are merged >>> from all the repos before handing them to Maven. You can read more >>> about this process here: >>> http://www.sonatype.com/people/2008/04/maven-209-released/ >>> >>> On Tue, Oct 20, 2009 at 6:35 AM, Reinhard Nägele >>> <reinhard.naegele@...> wrote: >>> >>> >>>> Hello, >>>> >>>> We set up Nexus with two groups (public and public-snapshots), one for >>>> releases and internal (hosted) snapshots, one for external (proxied) >>>> snapshot. By default, our settings files are configured to use the public >>>> group only. >>>> >>>> <mirror> >>>> <id>nexus</id> >>>> <mirrorOf>*</mirrorOf> >>>> <url>http://myserver/nexus/content/groups/public</url> >>>> </mirror> >>>> >>>> I must also mention that at the beginning we had only one group as >>>> suggested >>>> in the book that also included external snapshot (Apache, Codehaus), but >>>> we >>>> did not really like this setup. The problem now is that when I execute >>>> "mvn >>>> archetype:generate", Maven tries to download the latest snapshot of the >>>> plugin, which Nexus of course won't deliver. When I browse the public >>>> group >>>> in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only >>>> metadata in it. Why does a snapshot show up there at all? I suspect >>>> because >>>> in our original configuration the public group would also serve >>>> snapshots. >>>> So, how can this be remedied? I tried to rename the public folder in the >>>> Nexus storage area, but this did not help. >>>> >>>> Attached are Maven and Nexus logs. >>>> >>>> Thanks, >>>> Reinhard >>>> >>>> >>>> >>>> >>>>> mvn archetype:generate >>>>> >>>>> >>>> [INFO] Scanning for projects... >>>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>>> [INFO] snapshot >>>> >>>> org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: >>>> checking for updates from central >>>> Downloading: >>>> >>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom >>>> Downloading: >>>> >>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>> [INFO] Unable to find resource >>>> >>>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>>> in repo >>>> sitory central (http://central) >>>> [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating >>>> as >>>> non-aggregator. >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Building Maven Default Project >>>> [INFO] task-segment: [archetype:generate] >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> Downloading: >>>> >>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>> [INFO] Unable to find resource >>>> >>>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>>> in repo >>>> sitory central (http://central) >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] BUILD FAILURE >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] A required plugin was not found: Plugin could not be found - check >>>> that the goal name is correct: Unable to download the artifac >>>> t from any repository >>>> >>>> Try downloading the file manually from the project website. >>>> >>>> Then, install it using the command: >>>> mvn install:install-file -DgroupId=org.apache.maven.plugins >>>> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- >>>> SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file >>>> >>>> Alternatively, if you host your own repository you can deploy the file >>>> there: >>>> mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins >>>> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch-SN >>>> APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] >>>> -DrepositoryId=[id] >>>> >>>> >>>> >>>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>>> >>>> from the specified remote repositories: >>>> nexus (http://myhost/nexus/content/groups/public) >>>> >>>> >>>> >>>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>>> >>>> from the specified remote repositories: >>>> nexus (http://myhost/nexus/content/groups/public) >>>> >>>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - >>>> o.s.p.r.r.ManagedPl~:content >>>> - Got exception during processing GET >>>> >>>> http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >>>> >>>> public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>> in repository public >>>> at >>>> >>>> org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) >>>> at >>>> >>>> org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) >>>> at >>>> >>>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>>> at >>>> >>>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) >>>> at >>>> >>>> org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) >>>> at >>>> >>>> org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) >>>> at >>>> >>>> org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) >>>> at >>>> org.restlet.resource.Resource.getRepresentation(Resource.java:303) >>>> at org.restlet.resource.Resource.handleGet(Resource.java:465) >>>> at org.restlet.Finder.handle(Finder.java:353) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Router.handle(Router.java:504) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at >>>> >>>> org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>>> at >>>> >>>> com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) >>>> at org.restlet.Application.handle(Application.java:341) >>>> at >>>> org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Router.handle(Router.java:504) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at org.restlet.Router.handle(Router.java:504) >>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>> at org.restlet.Filter.handle(Filter.java:195) >>>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>>> at org.restlet.Component.handle(Component.java:673) >>>> at org.restlet.Server.handle(Server.java:331) >>>> at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) >>>> at >>>> >>>> com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) >>>> at >>>> >>>> com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>>> at >>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) >>>> at >>>> >>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) >>>> at >>>> >>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) >>>> at >>>> >>>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>>> at >>>> >>>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>>> at >>>> >>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>> at >>>> >>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>>> at >>>> >>>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>>> at >>>> >>>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>>> at >>>> >>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>> at >>>> >>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>>> at >>>> >>>> org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) >>>> at >>>> >>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>> at >>>> >>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) >>>> at >>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) >>>> at >>>> >>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >>>> at >>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>>> at >>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >>>> at >>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) >>>> at >>>> >>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) >>>> at >>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >>>> at org.mortbay.jetty.Server.handle(Server.java:320) >>>> at >>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) >>>> at >>>> >>>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) >>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) >>>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) >>>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) >>>> at >>>> >>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) >>>> at >>>> >>>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) >>>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log >>>> - RESPONSE >>>> >>>> /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>> 404 >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>>> For additional commands, e-mail: nexus-user-help@... >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>> For additional commands, e-mail: nexus-user-help@... >>> >>> >>> >> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default >> - Rebuilding maven metadata of repository group Public Repositories from >> path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process >> started on Tue Oct 20 15:28:18 CEST 2009, not yet finished. >> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - Recreating Maven2 metadata in repository ID='releases' from >> path='/org/apache/maven/plugins/maven-archetype-plugin/' >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default >> - Start walking on ResourceStore releases from path >> '/org/apache/maven/plugins/maven-archetype-plugin/'. >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - retrieveItem() :: >> releases:/org/apache/maven/plugins/maven-archetype-plugin/ >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - releases:/org/apache/maven/plugins/maven-archetype-plugin/ :: >> localOnly=true, remoteOnly=false >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.s.l.LocalRe~:file >> - /org/apache/maven/plugins/maven-archetype-plugin/ --> >> /exports/home/nexus/nexus-webapp-1.3.6/bin/jsw/linux-x86-32/../../../../sonatype-work/nexus/storage/releases/org/apache/maven/plugins/maven-archetype-plugin >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ not found >> in local storage. >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ does not >> exist locally and cannot go remote, throwing ItemNotFoundException. >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >> - releases retrieveItem() :: NOT FOUND >> releases:/org/apache/maven/plugins/maven-archetype-plugin/ >> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default >> - ItemNotFound where walking should start, bailing out. >> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >> releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository >> releases >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >> at >> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >> at >> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >> at >> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >> at >> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >> at >> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.w.Walker:default >> - Aborted walking on repository ID='releases' from >> path='/org/apache/maven/plugins/maven-archetype-plugin/', cause: Item not >> found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in >> repository releases >> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.f.FeedRecorder:default >> - Rebuilding maven metadata of repository group Public Repositories from >> path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : Process >> started on Tue Oct 20 15:28:18 CEST 2009, finished on Tue Oct 20 15:28:18 >> CEST 2009 with error. Error message is: >> org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on >> repository ID='releases' from >> path='/org/apache/maven/plugins/maven-archetype-plugin/'. Strack trace: >> org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on >> repository ID='releases' from >> path='/org/apache/maven/plugins/maven-archetype-plugin/'. >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >> at >> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >> at >> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >> at >> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >> at >> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on >> UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository >> releases >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >> at >> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >> ... 12 more >> >> org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on >> repository ID='releases' from >> path='/org/apache/maven/plugins/maven-archetype-plugin/'. >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >> at >> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >> at >> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >> at >> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >> at >> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on >> UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository >> releases >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >> at >> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >> at >> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >> at >> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >> at >> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >> ... 12 more >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> For additional commands, e-mail: nexus-user-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Maven tries to download snapshot instead of release versionAha, I knew that version looked odd. You can fix this using the
routing rules. You could say that .*/org/apache/.* can only come from Central and the Apache Snapshot repo (inclusive rule) On Fri, Oct 23, 2009 at 5:00 AM, Reinhard Nägele <reinhard.naegele@...> wrote: > Deleting from public did not help. I still had the wrong metadata. Trying to > recreate them still failed with the same error. So, I grepped for > "2.0-alpha-5-parent-patch-SNAPSHOT" below the storage folder and found out > that it came from the Terracotta Maven Repo, which we proxy. The only way to > get rid of the problem was to delete this repo. This would then also fix the > metadata. > > > Brian Fox schrieb: >> >> We'll have to check that they do get removed in 1.4. To force it go to >> the storage folder (sonatype-work/nexus/storage/public) and manually >> remove anything stored there for this artifact. >> >> On Tue, Oct 20, 2009 at 9:36 AM, Reinhard Nägele >> <reinhard.naegele@...> wrote: >> >>> >>> Attached is a screenshot that shows that the 2.0-alpha-5-parent-patch >>> version comes from the Apache Snapshot repository. This repository is >>> *not* >>> included in our public group. However, when I browse the public repo >>> group >>> in Nexus, I can see metadata that identify this version as the LATEST >>> one. >>> Now, how do I get rid of these metadata? I now deleted the whole content >>> of >>> the hosted Apache Snapshots Repository and tried to rebuild metadata, >>> which >>> failed (status BROKEN, see attached log file). >>> >>> The weird thing is that there is a folder 2.0-alpha-5-SNAPSHOT, but the >>> metadata lists 2.0-alpha-5-parent-patch-SNAPSHOT. In fact, their should >>> be >>> no snapshots at all from the Apache Snapshot Repo because it is not >>> included >>> in our public group. As I said, we removed the Apache Snapshot Repo from >>> that group quite a while ago. It seems Nexus does not really clean up >>> after >>> such a removal. >>> >>> >>> Brian Fox schrieb: >>> >>>> >>>> What is this 2.0-alpha-5-parent-patch version? This seems like >>>> something you might have patched internally which isn't loaded into >>>> Nexus. >>>> >>>> Either way, Maven will resolve the plugins via the metadata and take >>>> the LATEST version. This could be a snapshot if you've added the >>>> snapshot repos to our groups since all the metadata.xml's are merged >>>> from all the repos before handing them to Maven. You can read more >>>> about this process here: >>>> http://www.sonatype.com/people/2008/04/maven-209-released/ >>>> >>>> On Tue, Oct 20, 2009 at 6:35 AM, Reinhard Nägele >>>> <reinhard.naegele@...> wrote: >>>> >>>> >>>>> >>>>> Hello, >>>>> >>>>> We set up Nexus with two groups (public and public-snapshots), one for >>>>> releases and internal (hosted) snapshots, one for external (proxied) >>>>> snapshot. By default, our settings files are configured to use the >>>>> public >>>>> group only. >>>>> >>>>> <mirror> >>>>> <id>nexus</id> >>>>> <mirrorOf>*</mirrorOf> >>>>> <url>http://myserver/nexus/content/groups/public</url> >>>>> </mirror> >>>>> >>>>> I must also mention that at the beginning we had only one group as >>>>> suggested >>>>> in the book that also included external snapshot (Apache, Codehaus), >>>>> but >>>>> we >>>>> did not really like this setup. The problem now is that when I execute >>>>> "mvn >>>>> archetype:generate", Maven tries to download the latest snapshot of the >>>>> plugin, which Nexus of course won't deliver. When I browse the public >>>>> group >>>>> in Nexus, the tree does show a 2.0-alpha-5-SNAPSHOT folder with only >>>>> metadata in it. Why does a snapshot show up there at all? I suspect >>>>> because >>>>> in our original configuration the public group would also serve >>>>> snapshots. >>>>> So, how can this be remedied? I tried to rename the public folder in >>>>> the >>>>> Nexus storage area, but this did not help. >>>>> >>>>> Attached are Maven and Nexus logs. >>>>> >>>>> Thanks, >>>>> Reinhard >>>>> >>>>> >>>>> >>>>> >>>>>> >>>>>> mvn archetype:generate >>>>>> >>>>>> >>>>> >>>>> [INFO] Scanning for projects... >>>>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>>>> [INFO] snapshot >>>>> >>>>> >>>>> org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5-parent-patch-SNAPSHOT: >>>>> checking for updates from central >>>>> Downloading: >>>>> >>>>> >>>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>>> >>>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.pom >>>>> Downloading: >>>>> >>>>> >>>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>>> >>>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>>> [INFO] Unable to find resource >>>>> >>>>> >>>>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>>>> in repo >>>>> sitory central (http://central) >>>>> [INFO] Cannot find mojo descriptor for: 'archetype:generate' - Treating >>>>> as >>>>> non-aggregator. >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Building Maven Default Project >>>>> [INFO] task-segment: [archetype:generate] >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> Downloading: >>>>> >>>>> >>>>> http://myhost/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-pa >>>>> >>>>> tch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>>> [INFO] Unable to find resource >>>>> >>>>> >>>>> 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT' >>>>> in repo >>>>> sitory central (http://central) >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [ERROR] BUILD FAILURE >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] A required plugin was not found: Plugin could not be found - >>>>> check >>>>> that the goal name is correct: Unable to download the artifac >>>>> t from any repository >>>>> >>>>> Try downloading the file manually from the project website. >>>>> >>>>> Then, install it using the command: >>>>> mvn install:install-file -DgroupId=org.apache.maven.plugins >>>>> -DartifactId=maven-archetype-plugin -Dversion=2.0-alpha-5-parent-patch- >>>>> SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file >>>>> >>>>> Alternatively, if you host your own repository you can deploy the file >>>>> there: >>>>> mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins >>>>> -DartifactId=maven-archetype-plugin >>>>> -Dversion=2.0-alpha-5-parent-patch-SN >>>>> APSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] >>>>> -DrepositoryId=[id] >>>>> >>>>> >>>>> >>>>> >>>>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>>>> >>>>> from the specified remote repositories: >>>>> nexus (http://myhost/nexus/content/groups/public) >>>>> >>>>> >>>>> >>>>> >>>>> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5-parent-patch-SNAPSHOT >>>>> >>>>> from the specified remote repositories: >>>>> nexus (http://myhost/nexus/content/groups/public) >>>>> >>>>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - >>>>> o.s.p.r.r.ManagedPl~:content >>>>> - Got exception during processing GET >>>>> >>>>> >>>>> http://myserver/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>>> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >>>>> >>>>> >>>>> public:/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>>> in repository public >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:235) >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:100) >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:603) >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:117) >>>>> at >>>>> >>>>> >>>>> org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:122) >>>>> at >>>>> >>>>> >>>>> org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) >>>>> at >>>>> org.restlet.resource.Resource.getRepresentation(Resource.java:303) >>>>> at org.restlet.resource.Resource.handleGet(Resource.java:465) >>>>> at org.restlet.Finder.handle(Finder.java:353) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Router.handle(Router.java:504) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at >>>>> >>>>> >>>>> org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at >>>>> com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>>>> at >>>>> >>>>> >>>>> com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) >>>>> at org.restlet.Application.handle(Application.java:341) >>>>> at >>>>> org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Router.handle(Router.java:504) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at org.restlet.Router.handle(Router.java:504) >>>>> at org.restlet.Filter.doHandle(Filter.java:150) >>>>> at org.restlet.Filter.handle(Filter.java:195) >>>>> at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) >>>>> at org.restlet.Component.handle(Component.java:673) >>>>> at org.restlet.Server.handle(Server.java:331) >>>>> at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) >>>>> at >>>>> >>>>> >>>>> com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) >>>>> at >>>>> >>>>> >>>>> com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) >>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>>>> at >>>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) >>>>> at >>>>> >>>>> >>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) >>>>> at >>>>> >>>>> >>>>> org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) >>>>> at >>>>> >>>>> >>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) >>>>> at >>>>> >>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) >>>>> at >>>>> >>>>> >>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >>>>> at >>>>> >>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>>>> at >>>>> >>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >>>>> at >>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) >>>>> at >>>>> >>>>> >>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) >>>>> at >>>>> >>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >>>>> at org.mortbay.jetty.Server.handle(Server.java:320) >>>>> at >>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) >>>>> at >>>>> >>>>> >>>>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) >>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) >>>>> at >>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) >>>>> at >>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) >>>>> at >>>>> >>>>> >>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) >>>>> at >>>>> >>>>> >>>>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) >>>>> 2009-10-20 12:16:54 DEBUG [ch-SNAPSHOT.jar] - org.mortbay.log >>>>> - RESPONSE >>>>> >>>>> >>>>> /nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-5-parent-patch-SNAPSHOT/maven-archetype-plugin-2.0-alpha-5-parent-patch-SNAPSHOT.jar >>>>> 404 >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>>>> For additional commands, e-mail: nexus-user-help@... >>>>> >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>>> For additional commands, e-mail: nexus-user-help@... >>>> >>>> >>>> >>> >>> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - >>> o.s.n.f.FeedRecorder:default >>> - Rebuilding maven metadata of repository group Public Repositories from >>> path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : >>> Process >>> started on Tue Oct 20 15:28:18 CEST 2009, not yet finished. >>> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - Recreating Maven2 metadata in repository ID='releases' from >>> path='/org/apache/maven/plugins/maven-archetype-plugin/' >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default >>> - Start walking on ResourceStore releases from path >>> '/org/apache/maven/plugins/maven-archetype-plugin/'. >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - retrieveItem() :: >>> releases:/org/apache/maven/plugins/maven-archetype-plugin/ >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - releases:/org/apache/maven/plugins/maven-archetype-plugin/ :: >>> localOnly=true, remoteOnly=false >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.s.l.LocalRe~:file >>> - /org/apache/maven/plugins/maven-archetype-plugin/ --> >>> >>> /exports/home/nexus/nexus-webapp-1.3.6/bin/jsw/linux-x86-32/../../../../sonatype-work/nexus/storage/releases/org/apache/maven/plugins/maven-archetype-plugin >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ not >>> found >>> in local storage. >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - Item releases:/org/apache/maven/plugins/maven-archetype-plugin/ does >>> not >>> exist locally and cannot go remote, throwing ItemNotFoundException. >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.r.Repository:maven2 >>> - releases retrieveItem() :: NOT FOUND >>> releases:/org/apache/maven/plugins/maven-archetype-plugin/ >>> 2009-10-20 15:28:18 DEBUG [pool-1-thread-8] - o.s.n.p.w.Walker:default >>> - ItemNotFound where walking should start, bailing out. >>> org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on UID >>> releases:/org/apache/maven/plugins/maven-archetype-plugin/ in repository >>> releases >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>> at >>> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >>> at >>> >>> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >>> at >>> >>> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >>> at >>> >>> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >>> at >>> >>> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >>> at java.lang.Thread.run(Thread.java:595) >>> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - o.s.n.p.w.Walker:default >>> - Aborted walking on repository ID='releases' from >>> path='/org/apache/maven/plugins/maven-archetype-plugin/', cause: Item not >>> found on UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ >>> in >>> repository releases >>> 2009-10-20 15:28:18 INFO [pool-1-thread-8] - >>> o.s.n.f.FeedRecorder:default >>> - Rebuilding maven metadata of repository group Public Repositories from >>> path /org/apache/maven/plugins/maven-archetype-plugin/ and below. : >>> Process >>> started on Tue Oct 20 15:28:18 CEST 2009, finished on Tue Oct 20 15:28:18 >>> CEST 2009 with error. Error message is: >>> org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on >>> repository ID='releases' from >>> path='/org/apache/maven/plugins/maven-archetype-plugin/'. Strack trace: >>> org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on >>> repository ID='releases' from >>> path='/org/apache/maven/plugins/maven-archetype-plugin/'. >>> at >>> >>> org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) >>> at >>> >>> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >>> at >>> >>> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >>> at >>> >>> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >>> at >>> >>> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >>> at >>> >>> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >>> at java.lang.Thread.run(Thread.java:595) >>> Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found >>> on >>> UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in >>> repository >>> releases >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>> at >>> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >>> ... 12 more >>> >>> org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on >>> repository ID='releases' from >>> path='/org/apache/maven/plugins/maven-archetype-plugin/'. >>> at >>> >>> org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:170) >>> at >>> >>> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:103) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.recreateMavenMetadata(AbstractMavenRepository.java:172) >>> at >>> >>> org.sonatype.nexus.DefaultNexus.rebuildMavenMetadataRepositoryGroup(DefaultNexus.java:1408) >>> at >>> >>> org.sonatype.nexus.maven.tasks.RebuildMavenMetadataTask.doRun(RebuildMavenMetadataTask.java:36) >>> at >>> >>> org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) >>> at >>> >>> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:123) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) >>> at >>> >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >>> at >>> >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >>> at java.lang.Thread.run(Thread.java:595) >>> Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: Item not found >>> on >>> UID releases:/org/apache/maven/plugins/maven-archetype-plugin/ in >>> repository >>> releases >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:666) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:430) >>> at >>> >>> org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:331) >>> at >>> >>> org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:796) >>> at >>> org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:92) >>> ... 12 more >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: nexus-user-unsubscribe@... >>> For additional commands, e-mail: nexus-user-help@... >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> For additional commands, e-mail: nexus-user-help@... >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |