3 Replies Latest reply on Jul 13, 2007 12:13 PM by Kabir Khan

    MAVEN: Problem deploying snapshot

    Kabir Khan Master

      How can I deploy my aop snapshot to the maven repository?

      Kabir@KabirDell ~/sourcecontrol/jboss-aop/aop
      $ mvn -U -up -e deploy
      + Error stacktraces are turned on.
      [INFO] Scanning for projects...
      WAGON_VERSION: 1.0-beta-2
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building JBoss AOP
      [INFO] task-segment: [deploy]
      [INFO] ----------------------------------------------------------------------------
      [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from jboss
      [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central
      [INFO] snapshot org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT: checking for updates from jboss-snapshots
      [INFO] snapshot org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT: checking for updates from jboss-snapshots
      [INFO] snapshot org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT: checking for updates from snapshots.jboss.org
      Downloading: http://snapshots.jboss.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-surefire-plugin-2.4-SNAPSHOT.pom
      [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT' from repository jboss-snapshots (http://snapshots.jboss.org/maven2)
      Downloading: http://snapshots.jboss.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-surefire-plugin-2.4-SNAPSHOT.pom
      [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT' from repository jboss-snapshots (http://snapshots.jboss.org/maven2)
      Downloading: http://snapshots.jboss.org/maven2//org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-surefire-plugin-2.4-SNAPSHOT.pom
      [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT' from repository snapshots.jboss.org (http://snapshots.jboss.org/maven2/)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      GroupId: org.apache.maven.plugins
      ArtifactId: maven-surefire-plugin
      Version: 2.4-SNAPSHOT
      
      Reason: Unable to download the artifact from any repository
      
       org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss-snapshots (http://snapshots.jboss.org/maven2),
       repository.jboss.org (http://repository.jboss.org/maven2/),
       snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
       jboss (http://repository.jboss.org/maven2)
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.apache.maven.plugins:maven-surefire-plugin': POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository
      
       org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss-snapshots (http://snapshots.jboss.org/maven2),
       repository.jboss.org (http://repository.jboss.org/maven2/),
       snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
       jboss (http://repository.jboss.org/maven2)
      
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1016)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:980)
       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:330)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
       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:585)
       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 'org.apache.maven.plugins:maven-surefire-plugin': POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository
      
       org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss-snapshots (http://snapshots.jboss.org/maven2),
       repository.jboss.org (http://repository.jboss.org/maven2/),
       snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
       jboss (http://repository.jboss.org/maven2)
      
       at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:268)
       at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:186)
       at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
       ... 18 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository
      
       org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss-snapshots (http://snapshots.jboss.org/maven2),
       repository.jboss.org (http://repository.jboss.org/maven2/),
       snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
       jboss (http://repository.jboss.org/maven2)
      
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:528)
       at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:228)
       at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:252)
       ... 21 more
      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
      
       org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss-snapshots (http://snapshots.jboss.org/maven2),
       repository.jboss.org (http://repository.jboss.org/maven2/),
       snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
       jboss (http://repository.jboss.org/maven2)
      
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:482)
       ... 23 more
      Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
       at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:308)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
       ... 25 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 seconds
      [INFO] Finished at: Thu Jul 12 19:02:29 BST 2007
      [INFO] Final Memory: 2M/5M
      [INFO] ------------------------------------------------------------------------