Good day,

Try adding [1] ( or your proxy to it ) to your pluginRepository ( not just
in your <repostiroy> ) in your settings.xml or in the poms using the
snapshot plugins. 

>From your stack trace, it seems to me that [2] is the only pluginRepository
known to your builds.

Cheers,
Franz

[1] http://people.apache.org/maven-snapshot-repository
[2] http://repo1.maven.org/maven2


Siegmann Daniel, NY wrote:
> 
> Several people at my location have suddenly begun having build failures
> whenever an Apache plugin snapshot needs to be downloaded to their local
> repository. This includes key plugins such as
> org.apache.maven.plugins:maven-resources-plugin.
> 
> When I removed the plugin from my local repository I encountered the same
> error:
> 
>>>>>>
> Project ID: org.apache.maven.plugins:maven-resources-plugin
> 
> Reason: Error getting POM for
> 'org.apache.maven.plugins:maven-resources-plugin' from the repository:
> Failed to resolve artifact, possibly due to a repository list that is not
> appropriately equipped for this artifact's metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> <<<<<
> 
> We have an installation of maven-proxy set as a mirror of central,
> codehaus,
> and apache.snapshots. This has worked fine in the past, and the artifact
> was
> already present on the proxy (having been downloaded successfully in the
> past).
> 
> I tried removing the artifact from the proxy. Maven attempted to fetch the
> artifact from the proxy, and the proxy logs show it was downloaded from
> people.apache.org and cached successfully. But Maven still complains.
> 
> Any ideas what could be causing this? It's a rather serious problem, since
> it blocks all use of Maven when it crops up. :( We're using Sun JDK
> 1.4.2_05
> and Maven 2.0.4 (and have been for some time).
> 
> I have included a full trace below, though I didn't not see any
> information
> of use:
> 
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from:
> 'D:\Profiles\SIE01876\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'd:\projects\tools\maven\2.0.4\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] com.fja.pm:productmachine:jar:4.00_059 (selected for null)
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.wagon:wagon-providers::1.0-beta-2 for project:
> null:wagon-ftp:jar:1.0-beta-2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-beta-2
> for
> project: null:wagon-providers:pom:null from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
> project:
> org.apache.maven.wagon:wagon:pom:1.0-beta-2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:4 from the repository.
> [DEBUG]   org.apache.maven.wagon:wagon-ftp:jar:1.0-beta-2:runtime
> (selected
> for runtime)
> [DEBUG]     commons-net:commons-net:jar:1.4.1:runtime (selected for
> runtime)
> [DEBUG]       oro:oro:jar:2.0.8:runtime (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-beta-2
> for
> project: null:wagon-provider-api:jar:1.0-beta-2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
> project:
> org.apache.maven.wagon:wagon:pom:1.0-beta-2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:4 from the repository.
> [DEBUG]    
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
> (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for runtime)
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Product Machine
> [INFO]    task-segment: [test]
> [INFO]
> ----------------------------------------------------------------------------
> [DEBUG] maven-resources-plugin: resolved to version 2.3-SNAPSHOT from
> repository central
> [DEBUG] Skipping disabled repository central
> [DEBUG] maven-resources-plugin: using locally installed snapshot
> [DEBUG] Skipping disabled repository central
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> 
> 
> Project ID: org.apache.maven.plugins:maven-resources-plugin
> 
> Reason: Error getting POM for
> 'org.apache.maven.plugins:maven-resources-plugin' from the repository:
> Failed to resolve artifact, possibly due to a repository li
> st that is not appropriately equipped for this artifact's metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving
> version for 'org.apache.maven.plugins:maven-resources-plugin': Unable to
> read the metada
> ta file for artifact
> 'org.apache.maven.plugins:maven-resources-plugin:pom':
> Error getting POM for 'org.apache.maven.plugins:maven-resources-plugin'
> from
> the rep
> ository: Failed to resolve artifact, possibly due to a repository list
> that
> is not appropriately equipped for this artifact's metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
> cycleExecutor.java:1261)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> tLifecycleExecutor.java:1517)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackagin
> g(DefaultLifecycleExecutor.java:1011)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappin
> gs(DefaultLifecycleExecutor.java:975)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> ycleExecutor.java:453)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
> ures(DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
> ultLifecycleExecutor.java:273)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.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: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.version.PluginVersionResolutionException:
> Error resolving version for
> 'org.apache.maven.plugins:maven-resources-plugin': Unab
> le to read the metadata file for artifact
> 'org.apache.maven.plugins:maven-resources-plugin:pom': Error getting POM
> for
> 'org.apache.maven.plugins:maven-resources
> -plugin' from the repository: Failed to resolve artifact, possibly due to
> a
> repository list that is not appropriately equipped for this artifact's
> metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersi
> on(DefaultPluginVersionManager.java:678)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVer
> sion(DefaultPluginVersionManager.java:183)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVer
> sion(DefaultPluginVersionManager.java:87)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
> er.java:158)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
> cycleExecutor.java:1252)
>         ... 18 more
> Caused by:
> org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
> Unable to read the metadata file for artifact
> 'org.apache.maven.plugins:maven-
> resources-plugin:pom': Error getting POM for
> 'org.apache.maven.plugins:maven-resources-plugin' from the repository:
> Failed to resolve artifact, possibly due to
> a repository list that is not appropriately equipped for this artifact's
> metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadata
> Source.java:131)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersi
> on(DefaultPluginVersionManager.java:669)
>         ... 22 more
> Caused by: org.apache.maven.project.ProjectBuildingException: Error
> getting
> POM for 'org.apache.maven.plugins:maven-resources-plugin' from the
> repository: Faile
> d to resolve artifact, possibly due to a repository list that is not
> appropriately equipped for this artifact's metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
> DefaultMavenProjectBuilder.java:501)
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(Defa
> ultMavenProjectBuilder.java:225)
>         at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadata
> Source.java:102)
>         ... 23 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
> Failed to resolve artifact, possibly due to a repository list that is not
> appropriate
> ly equipped for this artifact's metadata.
>   org.apache.maven.plugins:maven-resources-plugin:pom:2.3-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
> tifactResolver.java:129)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
> tifactResolver.java:63)
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
> DefaultMavenProjectBuilder.java:467)
>         ... 25 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Feb 12 17:29:54 EST 2007
> [INFO] Final Memory: 1M/3M
> [INFO]
> ------------------------------------------------------------------------
> 
> Thanks,
> --
> Daniel Siegmann
> FJA-US, Inc.
> 512 Seventh Ave., New York, NY  10018
> (212) 840-2618 ext. 139
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-getting-POM---Failed-to-resolve-artifact-tf3217098s177.html#a8942632
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to