You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Edwin Punzalan <ep...@exist.com> on 2005/06/08 10:48:13 UTC

NullPointerException on Hello World plugin

I can't seem to get the hello world plugin to work...

attached are pom.xml, and the trace is in m2.log.

hello.mmld is in ./src/main/scripts from pom.xml.

Can anybody please help.

Re: NullPointerException on Hello World plugin

Posted by Edwin Punzalan <ep...@exist.com>.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Hello World Plugin
[INFO] ----------------------------------------------------------------------------
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository
[INFO] maven-plugin-plugin: resolved to version 2.0-alpha-2 from local repository
[INFO] maven-hello-plugin: resolved to version 1.0-SNAPSHOT from local repository
[INFO] maven-hello-plugin: using locally installed snapshot
[INFO] it0015 taglib definition resource from component realm is: null
[INFO] Using classloader that delegates to realm: org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
[INFO] Root tag type: org.apache.maven.script.marmalade.tags.MojoTag@18c56d
---------------------------------------------------
constituent[0]: file:/C:/MAVEN-~1.0-A/bin/../lib/commons-cli-1.0-beta-2.jar
constituent[1]: file:/C:/MAVEN-~1.0-A/bin/../lib/doxia-core-1.0-alpha-2.jar
constituent[2]: file:/C:/MAVEN-~1.0-A/bin/../lib/marmalade-core-1.0-alpha-3.jar
constituent[3]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-artifact-2.0-alpha-2.jar
constituent[4]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-core-2.0-alpha-2.jar
constituent[5]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-model-2.0-alpha-2.jar
constituent[6]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-monitor-2.0-alpha-2.jar
constituent[7]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-plugin-api-2.0-alpha-2.jar
constituent[8]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-plugin-descriptor-2.0-alpha-2.jar
constituent[9]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-project-2.0-alpha-2.jar
constituent[10]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-reporting-api-2.0-alpha-2.jar
constituent[11]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-script-marmalade-2.0-alpha-2.jar
constituent[12]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-settings-2.0-alpha-2.jar
constituent[13]: file:/C:/MAVEN-~1.0-A/bin/../lib/oro-2.0.7.jar
constituent[14]: file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-container-artifact-1.0-alpha-3.jar
constituent[15]: file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-i18n-1.0-beta-3.jar
constituent[16]: file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-marmalade-factory-1.0-alpha-3.jar
constituent[17]: file:/C:/MAVEN-~1.0-A/bin/../lib/wagon-http-lightweight-1.0-alpha-3.jar
constituent[18]: file:/C:/MAVEN-~1.0-A/bin/../lib/wagon-provider-api-1.0-alpha-3.jar
---------------------------------------------------
java.lang.NullPointerException
        at org.apache.maven.plugin.DefaultPluginManager.getPluginConfigurationFromExpressions(DefaultPluginManager.java:608)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:397)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
        at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
        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:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

Re: NullPointerException on Hello World plugin

Posted by Brett Porter <br...@gmail.com>.
This is the <id/> tag that is problematic. You can remove it.

Regards,
Brett

On 6/8/05, Edwin Punzalan <ep...@exist.com> wrote:
> I can't seem to get the hello world plugin to work...

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