You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin McNamee <ke...@symsoft.se> on 2005/10/13 16:16:32 UTC
[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
<ma...@symsoft.se> kevin.mcnamee@symsoft.se
<http://www.symsoft.se> www.symsoft.se
Re: [m2] Can't get hello world plugin to work
Posted by Brett Porter <br...@gmail.com>.
I was under the impression this had been put to the users list.
Certainly the links to the docs were removed from the site.
The build log you point at was a temporary problem with beanshell
support on trunk (not related to the 2.0 release).
- Brett
On 10/19/05, Kevin McNamee <ke...@symsoft.se> wrote:
> Hi Brett,
>
> I have joined the Developer's mailing list since it contains wealth of
> information about what is going on in Maven2.
>
> For instance, there has been no announcement on the User's list that
> Marmalade would not be supported. In fact I believe the right thing to do is
> to include plugins like Marmalade on the Plugin Matrix and flag them as
> obsolete/unsupported giving a reason why or a hyperlink.
>
> Regarding the stack trace below, I see the same trace appearing in the
> continuum build log file:
> http://maven.zones.apache.org/~maven/logs/m2-build-log-20051019.110000.txt
> So, does this merit a bug report since it affects plugins other than
> Marmalade?
>
> Regards,
> Kevin
>
>
> -----Original Message-----
> From: Brett Porter [mailto:brett.porter@gmail.com]
> Sent: 18 October 2005 21:31
> To: Maven Users List
> Subject: Re: [m2] Can't get hello world plugin to work
>
> Kevin,
>
> Oh, I hadn't read your earlier messages. Marmalade support was removed
> from Maven 2.0. It is now part of the marmalade project and will be
> released when it is mature enough.
>
> - Brett
>
> On 10/18/05, Kevin McNamee <ke...@symsoft.se> wrote:
> > 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:brett.porter@gmail.com]
> > 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> > > 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:leduyann@yahoo.com]
> > > 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> > >
> > > > 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
> > >
> > > >
> > >
> > > > <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> > >
> > > > <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: users-unsubscribe@maven.apache.org
> > >
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: [m2] Can't get hello world plugin to work
Posted by Kevin McNamee <ke...@symsoft.se>.
Hi Brett,
I have joined the Developer's mailing list since it contains wealth of
information about what is going on in Maven2.
For instance, there has been no announcement on the User's list that
Marmalade would not be supported. In fact I believe the right thing to do is
to include plugins like Marmalade on the Plugin Matrix and flag them as
obsolete/unsupported giving a reason why or a hyperlink.
Regarding the stack trace below, I see the same trace appearing in the
continuum build log file:
http://maven.zones.apache.org/~maven/logs/m2-build-log-20051019.110000.txt
So, does this merit a bug report since it affects plugins other than
Marmalade?
Regards,
Kevin
-----Original Message-----
From: Brett Porter [mailto:brett.porter@gmail.com]
Sent: 18 October 2005 21:31
To: Maven Users List
Subject: Re: [m2] Can't get hello world plugin to work
Kevin,
Oh, I hadn't read your earlier messages. Marmalade support was removed
from Maven 2.0. It is now part of the marmalade project and will be
released when it is mature enough.
- Brett
On 10/18/05, Kevin McNamee <ke...@symsoft.se> wrote:
> 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:brett.porter@gmail.com]
> 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> > 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:leduyann@yahoo.com]
> > 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> >
> > > 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
> >
> > >
> >
> > > <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> >
> > > <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: users-unsubscribe@maven.apache.org
> >
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Can't get hello world plugin to work
Posted by Brett Porter <br...@gmail.com>.
Kevin,
Oh, I hadn't read your earlier messages. Marmalade support was removed
from Maven 2.0. It is now part of the marmalade project and will be
released when it is mature enough.
- Brett
On 10/18/05, Kevin McNamee <ke...@symsoft.se> wrote:
> 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:brett.porter@gmail.com]
> 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> > 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:leduyann@yahoo.com]
> > 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> >
> > > 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
> >
> > >
> >
> > > <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> >
> > > <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: users-unsubscribe@maven.apache.org
> >
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m2] Can't get hello world plugin to work
Posted by Kevin McNamee <ke...@symsoft.se>.
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:brett.porter@gmail.com]
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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> 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:leduyann@yahoo.com]
> 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
>
> > 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
>
> >
>
> > <ma...@symsoft.se> kevin.mcnamee@symsoft.se
>
> > <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: users-unsubscribe@maven.apache.org
>
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Can't get hello world plugin to work
Posted by Brett Porter <br...@gmail.com>.
Did you declare a @goal ?
- Brett
On 10/17/05, Kevin McNamee <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> 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:leduyann@yahoo.com]
> 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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
>
> > 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
>
> >
>
> > <ma...@symsoft.se> kevin.mcnamee@symsoft.se
>
> > <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: users-unsubscribe@maven.apache.org
>
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m2] Can't get hello world plugin to work
Posted by Kevin McNamee <ke...@symsoft.se>.
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:kevin.mcnamee@symsoft.se]
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:leduyann@yahoo.com]
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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> 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
>
> <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> <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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m2] Can't get hello world plugin to work
Posted by Kevin McNamee <ke...@symsoft.se>.
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:leduyann@yahoo.com]
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 <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> 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
>
> <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> <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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m2] Can't get hello world plugin to work
Posted by Yann Le Du <le...@yahoo.com>.
Hi Kevin,
Try install again the plugin with this extra option :
m2 install -DupdateReleaseInfo=true
Yann
--- Kevin McNamee <ke...@symsoft.se> 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:kevin.mcnamee@symsoft.se]
> 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
>
> <ma...@symsoft.se> kevin.mcnamee@symsoft.se
> <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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m2] Can't get hello world plugin to work
Posted by Kevin McNamee <ke...@symsoft.se>.
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:kevin.mcnamee@symsoft.se]
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
<ma...@symsoft.se> kevin.mcnamee@symsoft.se
<http://www.symsoft.se> www.symsoft.se