Now I am trying to convert my xdoclet plugin to use maven2-xdoclet2-plugin instead of the maven-antrun-plugin, and I am getting the exact same exception, the QTag* plugins are failing for some reason. This comes from line 102 of XDocletMojo. Somehow we are loosing exception traces, so very hard to debug what is going on, since all we get is a Plexus life-cycle exception, with no root cause.
You can get this behavior to happen by simply moving your plugin's source directory somewhere other than where you have it.
A few suggestions for the Mojo:
- It'd be nice to be able to define some FileSets in the maven2-xdoclet2-plugin config, that will end up added to the compiler classpath. For example, all Xdoclet Qtags plugin is usually setup to generate sources in target/src, but m2 will not compile those classes in (the Maven-1 build used to use <maven:addPath....> for this, see xdoclet-plugins/maven.xml). The maven-compiler-plugin has a compilerSourceRoots property, but it is read-only, so only plugins can retrieve and modify it, but it cannot be done from the POM/settings.
http://maven.apache.org/guides/mini/guide-generating-sources.html
- Looks like the /generated-resources/xdoclet is hard-coded for outputDir. It'd be nice to be able to define FileSets that would get added from the plugin config.
- Need a way to control Xdoclet plugin's debug/logging from maven2-xdoclet2-plugin.
Shash
On 12/28/05, Sasvata Chatterjee <[EMAIL PROTECTED]> wrote:
[ERROR] BUILD FAILURE
[INFO] -------------------------------------------------------------------------
---
[INFO] PicoLifecycleException: method 'public abstract void org.picocontainer.St
artable.start()', instance '[EMAIL PROTECTED], null
[INFO] -------------------------------------------------------------------------
BTW, I get the exact same failure if I invoke xdoclet from the maven-antrun-plugin. Seems like, this is an issue with running under m2 in general, and not the xdoclet2-maven2-plugin.
Let me know if you are able to run your plugin OK.
[ERROR] BUILD ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Error executing ant tasks
Embedded error: org.picocontainer.PicoLifecycleException: PicoLifecycleException
: method 'public abstract void org.picocontainer.Startable.start()', instance 'o
[EMAIL PROTECTED], null
C:\Users\Shash\Java\workspaces\xdoclet2\xdoclet-plugin-keel-test\src\main\java n
ot found.
[INFO] -------------------------------------------------------------------------
