You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Leck, William C (Bill)" <wl...@avaya.com> on 2005/08/17 03:19:09 UTC

Problem finding marmelade tld?

I posted the same message to the user's site.  I'm new to this list and
am not sure where such a post would belong.

I'm a maven newbie an have been working my way through the
documentation.  I'm trying to build the example Hello World Plug-in that
is in the Maven documentation at
http://maven.apache.org/maven2/developers/developing-plugins-with-marmal
ade.html.  I've cut and pasted the code from the site.  However, doing
so creates the following below.  I'm not sure but the behavior is almost
at though it can't seem to find the tld.  Note that I removed the
<packaging>maven-plugin</packaging> line as part of the troubleshooting.
The file will build; but apparently not correctly, as then it complains
that it can't find the version when attempting m2 hello:hello.  Any
ideas would be appreciated.  I've pulled my hair trying to figure
through this one.

Thanks,

Bill

> m2 -e -X install
+ Error stacktraces are turned on.
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building Maven Hello World Plugin
[INFO]
------------------------------------------------------------------------
-
---
[DEBUG] Building Maven global-level settings from: 'C:\Program
Files\Apache Soft
ware Foundation\maven-2.0-alpha-3\conf\plugin-registry.xml'
[DEBUG] Building Maven user-level settings from: 'C:\Documents and
Settings\wlec
k\.m2\plugin-registry.xml'
[INFO] maven-plugin-plugin: resolved to version 2.0-alpha-3 from local
repositor
y
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from
local reposi
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local
reposit
ory
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local
reposit
ory
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] maven-install-plugin: resolved to version 2.0-alpha-3 from local
reposito
ry
[DEBUG]
org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:2.0-alpha-3 (s
elected)
[DEBUG]   org.apache.maven:maven-plugin-tools-marmalade:jar:2.0-alpha-3
(selecte
d)
[DEBUG]     org.apache.maven:maven-script-marmalade:jar:2.0-alpha-3
(selected)
[DEBUG]       plexus:plexus-marmalade-factory:jar:1.0-alpha-5 (selected)
[DEBUG]         marmalade:marmalade-compat-ant:jar:1.0-alpha-3
(selected)
[DEBUG]           marmalade:marmalade-utils:jar:1.0-alpha-3 (selected)
[DEBUG]           marmalade:marmalade-core:jar:1.0-alpha-3 (selected)
[DEBUG]           ant:ant:jar:1.6.2 (selected)
[DEBUG]           ant:ant-junit:jar:1.6.2 (selected)
[DEBUG]         marmalade:marmalade-core:jar:1.0-alpha-4 (selected)
[DEBUG]       marmalade:marmalade-core:jar:1.0-alpha-4 (selected)
[DEBUG]     org.apache.maven:maven-plugin-tools-api:jar:2.0-alpha-3
(selected)
[DEBUG]       org.codehaus.modello:modello-core:jar:1.0-alpha-1
(selected)
[DEBUG]     marmalade:marmalade-core:jar:1.0-alpha-4 (selected)
[DEBUG]   org.apache.maven:maven-plugin-tools-java:jar:2.0-alpha-3
(selected)
[DEBUG]     org.apache.maven:maven-plugin-tools-api:jar:2.0-alpha-3
(removed - n
earer found: 2.0-alpha-3)
[DEBUG]     qdox:qdox:jar:1.5 (selected)
[DEBUG]   org.apache.maven:maven-plugin-tools-beanshell:jar:2.0-alpha-3
(selecte
d)
[DEBUG]     org.apache.maven:maven-plugin-tools-api:jar:2.0-alpha-3
(removed - n
earer found: 2.0-alpha-3)
[DEBUG]     bsh:bsh:jar:1.3.0 (selected)
[DEBUG]   org.apache.maven:maven-plugin-tools-api:jar:2.0-alpha-3
(selected)
[DEBUG]     org.codehaus.modello:modello-core:jar:1.0-alpha-1 (selected)
[DEBUG]
org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:2.0-alpha-3 (s
elected)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0-alpha-3 (selected)
[INFO] [plugin:descriptor]
---------------------------------------------------
constituent[0]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/commons-cli-1.0-beta-2.jar
constituent[1]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/commons-validator-1.1.4.jar
constituent[2]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/doxia-core-1.0-alpha-3.jar
constituent[3]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/jline-0.9.1.jar
constituent[4]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/jsch-0.1.17.jar
constituent[5]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/maven-artifact-2.0-alpha-3.jar
constituent[6]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/maven-artifact-manager-2.0-alpha-3.jar
constituent[7]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/maven-core-2.0-alpha-3.jar
constituent[8]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/maven-model-2.0-alpha-3.jar
constituent[9]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alph
a-3/lib/maven-monitor-2.0-alpha-3.jar
constituent[10]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-plugin-api-2.0-alpha-3.jar
constituent[11]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-plugin-descriptor-2.0-alpha-3.jar
constituent[12]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-plugin-registry-2.0-alpha-3.jar
constituent[13]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-profile-2.0-alpha-3.jar
constituent[14]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-project-2.0-alpha-3.jar
constituent[15]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-reporting-api-2.0-alpha-3.jar
constituent[16]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/maven-settings-2.0-alpha-3.jar
constituent[17]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/oro-2.0.7.jar
constituent[18]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/plexus-input-handler-1.0-alpha-2.jar
constituent[19]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/wagon-file-1.0-alpha-4.jar
constituent[20]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/wagon-http-lightweight-1.0-alpha-4.jar
constituent[21]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/wagon-provider-api-1.0-alpha-4.jar
constituent[22]: file:/C:/Program Files/Apache Software
Foundation/maven-2.0-alp
ha-3/lib/wagon-ssh-1.0-alpha-4.jar
---------------------------------------------------
java.lang.NullPointerException
        at
org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTa
g(AbstractMarmaladeTagLibrary.java:59)
        at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:67)
        at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:83)
        at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:83)
        at
org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.ja
va:51)
        at
org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(Marmalade
Launcher.java:264)
        at
org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(Ma
rmaladeLauncher.java:313)
        at
org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescri
ptorExtractor.extractMojoDescriptors(MarmaladeMojoDescriptorExtractor.ja
va:89)
        at
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescripto
rExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
        at
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug
inDescriptor(DefaultMojoScanner.java:69)
        at
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract
GeneratorMojo.java:93)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:401)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:169)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:143)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:129)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:103)
        at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)




Thanks,

Bill