You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Albrecht Militzer <al...@mms-dresden.de> on 2009/04/14 14:06:21 UTC

trunk build fails with Cannot find plugin: org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4-SNAPSHOT

Hello,

I am trying to build maven following these instructions:

http://maven.apache.org/guides/development/guide-building-m2.html

The svn checkout completes without error.

Calling maven install results in this:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Maven
[INFO]   Maven Lifecycle Model
[INFO]   Maven Reporting API
[INFO]   Maven Model
[INFO]   Maven Compat
[INFO]   Maven Plugin API
[INFO]   Maven Project Builder
[INFO]   Maven Repository
[INFO]   Maven Project
[INFO]   Maven Mercury
[INFO]   Maven Core
[INFO]   Maven Toolchains
[INFO]   Maven Embedder
[INFO]   Maven Distribution
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Maven
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [site:attach-descriptor]
[INFO] Unable to load parent project from a relative path: Could not find
the model file 'D:\pom\maven\pom.xml'. for project unknown
[INFO] Parent project loaded from repository.
[INFO] [install:install]
[INFO] Installing D:\mvnb\pom.xml to
D:\lib\maven_repo\org\apache\maven\maven\3.0-SNAPSHOT\maven-3.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Lifecycle Model
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] snapshot
org.apache.maven.plugins:maven-resources-plugin:2.4-SNAPSHOT: checking for
updates from apache.snapshots
Downloading:
http://repository.apache.org/snapshots/org/apache/maven/plugins/maven-resour
ces-plugin/2.4-SNAPSHOT/maven-resources-plugin-2.4-20090302.2
33806-1.pom
4K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/13/mave
n-plugins-13.pom
11K downloaded
[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 artifact from any repo
sitory

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-resources-plugin -Dversion=2.4-SNAPSHOT
-Dpackaging=maven-plugin -D
file=/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-resources-plugin -Dversion=2.4-SNAPSHOT
-Dpackaging=maven-plugin -Dfi
le=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

  org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
My maven settings contain my proxy. Since it downloaded some artifacts
before reaching this error, I believe it is setup correctly.

Could you tell me how I can get access to this plugin?

Thanks in advance

Albrecht Militzer


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


Re: trunk build fails with Cannot find plugin: org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4-SNAPSHOT

Posted by Benjamin Bentmann <be...@udo.edu>.
Albrecht Militzer wrote:

> My maven settings contain my proxy. Since it downloaded some artifacts
> before reaching this error, I believe it is setup correctly.
> 
> Could you tell me how I can get access to this plugin?

Adding http://repository.apache.org/snapshots/ as a <pluginRepository> 
should do, see [0] for details.

If that doesn't work for you, you can also try building the plugin 
itself from its trunk [1].


Benjamin


[0] 
http://maven.apache.org/guides/development/guide-testing-development-plugins.html
[1] 
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-resources-plugin

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