You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Davy Toch <Da...@belgacom.net> on 2005/09/21 12:48:20 UTC

Problem with marmalade plugin tutorial as described on M2 site.

Hi,

I tried to create the 'hello' marmalade plugin as indicated in the 
section 'Creating Your First Plugin' at :

http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html 


I'm currently using maven-2.0-beta-1.

Creating the 'hello' plugin and installing it in the local repository 
works, but executing 'm2 hello:hello' generated the following error 
message:

======================================================
[INFO] Searching repository for plugin with prefix: 'hello'.
Downloading: file://C:\Documents and 
Settings\dto\.m2\repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.pom 

[WARNING]
 ***** Using defaults for missing POM 
org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *****

Downloading: file://C:\Documents and 
Settings\dto\.m2\repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar 

[INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as 
non-aggregator.
[INFO] 
---------------------------------------------------------------------------- 

[INFO] Building Maven Hello World Plugin
[INFO]    task-segment: [hello:hello]
[INFO] 
---------------------------------------------------------------------------- 

Downloading: file://C:\Documents and 
Settings\dto\.m2\repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar 

[INFO] 
---------------------------------------------------------------------------- 

[INFO] BUILD FAILURE
[INFO] 
---------------------------------------------------------------------------- 

[INFO] Main Error:
 Mojo could not be found - check that the goal name is correct
 org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin

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

Root error:
 File: C:\Documents and 
Settings\dto\.m2\repository\org\apache\maven\plugins\maven-hello-plugin\RELEASE\maven-hello-plugin-RELEASE.jar 
does not exist
[INFO] 
---------------------------------------------------------------------------- 

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Sep 21 12:23:11 CEST 2005
[INFO] Final Memory: 1M/2M
[INFO] 
---------------------------------------------------------------------------- 

======================================================

Apparently it looks for a version 'RELEASE', so I changed the version of 
the 'hello' plugin in ${user.home}/.m2/plugin-registry to 1.0. Then I 
ran 'm2 hello:hello' again, which prompted me for chosing between 
version 'RELEASE' (default) and '1.0' of the 'hello' plugin. Now I chose 
'1.0', but doing this gave me the following error:

[ERROR] Nonexistent component: 
org.codehaus.plexus.component.factory.ComponentFactorymarmalade

I also tried with the --offline option of the m2 command, but to no avail.

I've just started experimenting with M2, so perhaps I forgot a 
configuration somewhere in M2 that is obvious for the M2 guru's out 
there :-).

Regards,
Davy Toch

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