Hi Brett,

I assume that the goal is declared in the Marmalade script:

<mojo xmlns="marmalade:mojo">
  <metadata>
    <goal>hello</goal>
    <description>Say Hello to the World.</description>
  </metadata>
  <execute>
    <c:out xmlns:c="marmalade:core">Hello, World</c:out>
  </execute>
</mojo>

This comes from the example at 
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
html

In any case I have given up on Marmalade since it will not be officially
supported.

/Kevin


-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2005 04:52
To: Maven Users List
Subject: Re: [m2] Can't get hello world plugin to work

Did you declare a @goal ?

- Brett

On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I updated to Maven 2.0 RC and reran the demo, with the same result (see
> below)
>
> What is the problem? Why can't it find my plugin? Why is it throwing an
> exception? Please help.
>
> Much appreciated,
> Kevin
>
>
>
> maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> [INFO] Scanning for projects...
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Building Maven Hello World Plugin
> [INFO]    task-segment: [install]
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] [plugin:descriptor]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar to /home/kevin/.m2/rep
>
ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> -plugin-1.0-SNAPSHOT.jar
> [INFO] [plugin:updateRegistry]
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> [INFO] Final Memory: 3M/8M
> [INFO]
>
----------------------------------------------------------------------------
>
> maven-hello-plugin> m2 hello:hello
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'hello'.
> [INFO]
>
----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] null
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at
>
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> .java:261)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> tLifecycleExecutor.java:1363)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> tionNeeds(DefaultLifecycleExecutor.
> java:376)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:132)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Oct 17 11:26:30 MEST 2005
> [INFO] Final Memory: 1M/4M
> [INFO]
>
----------------------------------------------------------------------------
>
>
>
>
>
> -----Original Message-----
> From: Kevin McNamee [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2005 14:25
> To: 'Maven Users List'
> Subject: RE: [m2] Can't get hello world plugin to work
>
> Hi Yann,
>
>
>
> Ok I ran
>
>
>
> Now I get
>
>
>
> my:maven-hello-plugin> m2 hello:hello
>
> [INFO] Searching repository for plugin with prefix: 'hello'.
>
> ---------------------------------------------------
>
> constituent[0]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-core-2.0-beta-3.jar
>
> constituent[1]:
>
file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-manager-2.0-beta-3.jar
>
> constituent[2]:
> file:/proj/local/maven-2.0-beta-3/lib/plexus-input-handler-1.0-alpha-2.jar
>
> constituent[3]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-api-2.0-beta-3.jar
>
> constituent[4]:
>
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-descriptor-2.0-beta-3.jar
>
> constituent[5]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-2.0-beta-3.jar
>
> constituent[6]: file:/proj/local/maven-2.0-beta-3/lib/commons-cli-1.0.jar
>
> constituent[7]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-model-2.0-beta-3.jar
>
> constituent[8]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-settings-2.0-beta-3.jar
>
> constituent[9]:
>
file:/proj/local/maven-2.0-beta-3/lib/maven-repository-metadata-2.0-beta-3.j
> ar
>
> constituent[10]: file:/proj/local/maven-2.0-beta-3/lib/jsch-0.1.21.jar
>
> constituent[11]:
> file:/proj/local/maven-2.0-beta-3/lib/wagon-provider-api-1.0-alpha-4.jar
>
> constituent[12]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-monitor-2.0-beta-3.jar
>
> constituent[13]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-reporting-api-2.0-beta-3.jar
>
> constituent[14]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-profile-2.0-beta-3.jar
>
> constituent[15]:
> file:/proj/local/maven-2.0-beta-3/lib/wagon-file-1.0-alpha-4.jar
>
> constituent[16]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-project-2.0-beta-3.jar
>
> constituent[17]:
> file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-registry-2.0-beta-3.jar
>
> constituent[18]: file:/proj/local/maven-2.0-beta-3/lib/jline-0.9.1.jar
>
> constituent[19]:
>
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-parameter-documenter-2.0-
> beta-3.jar
>
> constituent[20]:
> file:/proj/local/maven-2.0-beta-3/lib/doxia-sink-api-1.0-alpha-4.jar
>
> constituent[21]:
> file:/proj/local/maven-2.0-beta-3/lib/wagon-ssh-1.0-alpha-4.jar
>
> constituent[22]:
>
file:/proj/local/maven-2.0-beta-3/lib/wagon-http-lightweight-1.0-alpha-4.jar
>
> ---------------------------------------------------
>
> java.lang.NullPointerException
>
>         at
>
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> .java:258)
>
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> tLifecycleExecutor.java:1294)
>
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> tionNeeds(DefaultLifecycleExecutor.java:420)
>
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:132)
>
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>
>         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)
>
>
>
> /Kevin
>
>
>
> -----Original Message-----
> From: Yann Le Du [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2005 13:53
> To: Maven Users List
> Subject: RE: [m2] Can't get hello world plugin to work
>
>
>
> Hi Kevin,
>
>
>
> Try install again the plugin with this extra option :
>
> m2 install -DupdateReleaseInfo=true
>
>
>
> Yann
>
>
>
> --- Kevin McNamee <[EMAIL PROTECTED]> a écrit :
>
>
>
> > Of course I meant after installation when I try to test the plugin.
>
> >
>
> >
>
> >
>
> > Also I am using maven 2.0 Beta 3.
>
> >
>
> >
>
> >
>
> > /Kevin
>
> >
>
> >
>
> >
>
> >   _____
>
> >
>
> > From: Kevin McNamee [mailto:[EMAIL PROTECTED]
>
> > Sent: 13 October 2005 16:17
>
> > To: 'Maven Users List'
>
> > Subject: [m2] Can't get hello world plugin to work
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I have been trying to get the Hello World plugin to work following the
>
> > instructions at
>
> >
>
> >
>
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
>
> > html
>
> >
>
> >
>
> >
>
> > But then when I do the install I get:
>
> >
>
> >
>
> >
>
> > :maven-hello-plugin> m2 hello:hello
>
> >
>
> > [INFO] Searching repository for plugin with prefix: 'hello'.
>
> >
>
> > [WARNING]
>
> >
>
> >   ***** Using defaults for missing POM
>
> > org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *****
>
> >
>
> >
>
> >
>
> > [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]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > [INFO]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > [ERROR] FATAL ERROR
>
> >
>
> > [INFO]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > [INFO] Diagnosis: Error resolving plugin version
>
> >
>
> > [INFO]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > [INFO]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > [ERROR] FATAL ERROR
>
> >
>
> > [INFO]
>
> >
>
----------------------------------------------------------------------------
>
> >
>
> > FATAL ERROR: Error executing Maven for a project
>
> >
>
> > For more information, run with the -e flag
>
> >
>
> >
>
> >
>
> > Any ideas?
>
> >
>
> >
>
> >
>
> > Much appreciated,
>
> >
>
> > Kevin
>
> >
>
> >
>
> >
>
> >
>
> > ________________________________________________________
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >  <http://www.symsoft.se>
>
> >
>
> > Kevin McNamee
>
> > Design Engineer
>
> > Symsoft AB Kista Science Tower
>
> >
>
> > TEL
>
> > FAX
>
> > GSM
>
> >
>
> > +46 8 503 86 637
>
> > +46 8 566 166 01
>
> > +46 702 49 12 92
>
> >
>
> >
>
> >
>
> >
>
> > Färögatan 33, Box 1219
>
> > SE-164 28 Kista, Sweden
>
> >
>
> >  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
>
> >  <http://www.symsoft.se> www.symsoft.se
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
___________________________________________________________________________
>
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>
> Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





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

Reply via email to