archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsoula <jsoula.li...@gmail.com>
Subject Problem when download Snapshot
Date Tue, 22 Jan 2008 08:20:41 GMT
Hello,

I used maven-2.0.8 and Archiva 1.0.
I have a plugin with a version 1.2-TOMCAT6-SNAPSHOT.
I deploy it into the entreprise company snapshot repository and the 
version becomes 1.2-TOMCAT6-20080121.095115-1

I clean my local repo but i have this error when i construct a project 
depend on it (with -X):

[INFO] 
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build 
project for plugin 'com.xxxxx.maven.plugin:maven-wardeploy-plugin': POM 
'com.xxxxx.maven.plugin:maven-wardeploy-plugin' not found in repository: 
Unable to locate resource in repository

 
com.xxxxx.maven.plugin:maven-wardeploy-plugin:pom:1.2-TOMCAT6-20080121.095115-1 


from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sf-repository-snapshots (http://dingo:1050/maven2/sf-snapshots),
 sf-repository-releases (http://dingo:1050/maven2/sf)
for project com.xxxxx.maven.plugin:maven-wardeploy-plugin
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1221)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:987)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)


   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to 
build project for plugin 
'com.xxxxx.maven.plugin:maven-wardeploy-plugin': POM 
'com.xxxxx.maven.plugin:maven-wardeploy-plugin' not found in repository: 
Unable to locate resource in repository

 
com.xxxxx.maven.plugin:maven-wardeploy-plugin:pom:1.2-TOMCAT6-20080121.095115-1 


from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sf-repository-snapshots (http://dingo:1050/maven2/sf-snapshots),
 sf-repository-releases (http://dingo:1050/maven2/sf)
for project com.xxxxx.maven.plugin:maven-wardeploy-plugin
   at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277)


   at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:193)


   at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:172) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)


   ... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 
'com.xxxxx.maven.plugin:maven-wardeploy-plugin' not found in repository: 
Unable to locate resource in repository

 
com.xxxxx.maven.plugin:maven-wardeploy-plugin:pom:1.2-TOMCAT6-20080121.095115-1 


from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sf-repository-snapshots (http://dingo:1050/maven2/sf-snapshots),
 sf-repository-releases (http://dingo:1050/maven2/sf)
for project com.xxxxx.maven.plugin:maven-wardeploy-plugin
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:571)


   at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:231)


   at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:261)


   ... 20 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: 
Unable to locate resource in repository

 
com.xxxxx.maven.plugin:maven-wardeploy-plugin:pom:1.2-TOMCAT6-20080121.095115-1 


from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sf-repository-snapshots (http://dingo:1050/maven2/sf-snapshots),
 sf-repository-releases (http://dingo:1050/maven2/sf)

   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:206)


   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)


   at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:524)


   ... 22 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable 
to locate resource in repository
   at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:100)


   at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462)


   at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:347)


   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:190)


   ... 24 more
Caused by: java.io.FileNotFoundException: 
http://dingo:10500/archiva/repository/maven2-sf-snapshots/com/xxxxx/maven/plugin/maven-wardeploy-plugin/1.2-TOMCAT6-SNAPSHOT/maven-wardeploy-plugin-1.2-TOMCAT6-20080121.095115-1.pom


   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:798) 

   at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)


   ... 28 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jan 21 11:01:45 CET 2008
[INFO] Final Memory: 4M/7M
[INFO] 
------------------------------------------------------------------------

I check in the server and the file exists.
When i try the url in a browser, archiva shows:


 Error 404 Not Found

The following resource does not exist: 
http://dingo:10500/repository//com/xxxx/maven/plugin/maven-wardeploy-plugin/1.2-TOMCAT6-SNAPSHOT/maven-wardeploy-plugin-1.2-TOMCAT6-20080121.095115-1.pom

<http://dingo:10500/repository//com/csc/maven/plugin/maven-wardeploy-plugin/1.2-TOMCAT6-SNAPSHOT/maven-wardeploy-plugin-1.2-TOMCAT6-20080121.095115-1.pom>



org.apache.maven.archiva.repository.layout.LayoutException: Invalid path 
to Artifact: filename format is invalid,expected timestamp format in 
filename.
    at 
org.apache.maven.archiva.repository.content.DefaultPathParser.toArtifactReference(DefaultPathParser.java:134)


    at 
org.apache.maven.archiva.repository.content.RepositoryRequest.toArtifactReference(RepositoryRequest.java:121)


    at 
org.apache.maven.archiva.repository.content.RepositoryRequest.toNativePath(RepositoryRequest.java:271)


    at 
org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:193)


    at 
org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)


    at 
org.apache.maven.archiva.web.repository.RepositoryServlet.service(RepositoryServlet.java:155)


    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)


    at 
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189) 

    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)


    at 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39) 

    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)


    at 
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)


    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)


    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) 

    at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) 

    at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
    at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


I don't know if the problem come from maven or Archiva, and if this is a 
known bug.
I notice that if i use a version like 1.2-SNAPSHOT, all work well. It 
seems that the problem comes from the version.

Thx for help.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Mime
View raw message