Is there anyway to get the maven-plugin-plugin to work with a module
that contains 1.5 annotations?
When I try to build when the packaging is 'maven-plugin',
'plugin:descriptor' pukes up:
<snip>
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] 0
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor
.getJavaClass(JavaMojoDescriptorExtractor.java:510)
at
org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor
.execute(JavaMojoDescriptorExtractor.java:529)
at
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginD
escriptor(DefaultMojoScanner.java:84)
at
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute
(AbstractGeneratorMojo.java:135)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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:585)
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)
</snip>
I'm trying to get the groovy-maven-plugin to support generating
plugin descriptors for *.groovy bits by using annotations. I'm not
sure how well this is going to work out just yet, but I think that
with the retrotranstator-maven-plugin I can translate the classes to
be compatible with Java 1.4 and _maybe_ still have access to the
annotations. But the current maven-plugin-plugin is unable to cope
with the annotation classes. I wish I could just tell it to skip
them, but does not appear to be a way to do that.
I'm guessing I will have to put these classes into another module to
allow the groovy-maven-plugin to be happy, then simply include the
module with the annotations as a dependency?
* * *
On a somewhat related note... are there any plans to use annotations
for plugin metadata in Maven proper in any time in the nearish future?
--jason
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]