maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Lally <ala...@us.ibm.com>
Subject Re: How to use latest snapshot of assembly plugin?
Date Fri, 29 Sep 2006 20:35:59 GMT
Running with -U did not help.  Here's the output from "mvn -X compile".  I 
see a bunch of "Skipping disabled repository..." messages.  Why is that?

 

+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and 
Settings\Administrator\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\Program 
Files\maven\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [compile]
[INFO] 
----------------------------------------------------------------------------
[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository 
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 
for project: null:maven-resources-plugin:maven-plugin:2.2 from the 
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository 
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 
for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the 
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-assembly-plugin: using locally installed snapshot
[DEBUG] Trying repository apache.snapshots
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository)
[DEBUG] Trying repository apache.org
Downloading: 
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.org 
(http://people.apache.org/maven-snapshot-repository)
[DEBUG] Trying repository codehaus.org
Downloading: 
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus.org 
(http://snapshots.repository.codehaus.org/)
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)


[INFO] 
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build 
project for plugin 'org.apache.maven.plugins:maven-assembly-plugin': POM 
'org.apache.maven.plugins:maven-assembly-plugin' not found in repository: 
Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)

        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1269)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1216)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:982)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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-assembly-plugin': POM 
'org.apache.maven.plugins:maven-assembly-plugin' not found in repository: 
Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)

        at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:183)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
        ... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 
'org.apache.maven.plugins:maven-assembly-plugin' not found in repository: 
Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)

        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:513)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225)
        at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:249)
        ... 20 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: 
Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)

        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467)
        ... 22 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:260)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
        ... 24 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Sep 29 16:31:17 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO] 
------------------------------------------------------------------------
_____________________________
 Adam Lally
 Advisory Software Engineer 
 UIMA Framework Lead Developer
 IBM T.J. Watson Research Center
 Hawthorne, NY, 10532
 Tel: 914-784-7706,  T/L: 863-7706
 alally@us.ibm.com



"John Casey" <casey.john.d@gmail.com> 
09/29/2006 04:14 PM
Please respond to
"Maven Users List" <users@maven.apache.org>


To
"Maven Users List" <users@maven.apache.org>
cc

Subject
Re: How to use latest snapshot of assembly plugin?






Two things:

Adam: You may have to run with -U to get the update, but I doubt it...I'd 
be
interested to see the debug output from that build.

Wendy: It's a quirk of the plugin version resolver that you have to have
releases enabled on that snapshot repository where the assembly plugin
snapshot is stored, I think. It seems to me that even if you specify a
-SNAPSHOT version this might be the case, though that doesn't seem to make
sense on the face of it...

-john

On 9/29/06, Wendy Smoak <wsmoak@gmail.com> wrote:
>
> On 9/29/06, Adam Lally <alally@us.ibm.com> wrote:
> > That didn't work for me either.  But if I go to that URL in my 
browser,
> I
> > do see a 2.2-SNAPSHOT directory under the assembly plugin.  So it is
> > there, but not being found for some reason?
>
> I have this:
>
>             <pluginRepository>
>                <id>apache.snapshots</id>
> <url>http://people.apache.org/repo/m2-snapshot-repository/
> </url>
>                <snapshots><enabled>true</enabled></snapshots>
>                <releases><enabled>false</enabled></releases>
>             </pluginRepository>
>
> Try explicitly enabling snapshots, maybe that isn't the default for
> plugin repositories.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message