[
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1435?page=comments#action_17521
]
Kiran Keshav commented on XDT-1435:
-----------------------------------
I also saw this when using the maven 2 implementation of the xdoclet plugin.
I then checked out the xdoclet cvs HEAD (to use the version with the previous
changes backed out), built it, built the xdoclet-maven-plugin using this
version of XDoclet (1.3-SNAPSHOT), then ran mvn install on my project and
received:
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant
tasks
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
at org.codehaus.mojo.xdoclet.XDocletMojo.execute(XDocletMojo.java:102)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
... 16 more
Caused by: java.lang.NullPointerException
at
org.apache.maven.plugin.antrun.AbstractAntMojo.getPathFromArtifacts(AbstractAntMojo.java:116)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:92)
... 19 more
If you think this is now a maven issue, let me know and I'll move this post.
> Module list gets reset but DocletTask.subtaskMap isn't
> ------------------------------------------------------
>
> Key: XDT-1435
> URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1435
> Project: XDoclet
> Type: Bug
> Components: Core
> Versions: 1.2.3
> Environment: windows/all
> Reporter: Kenney Westerhof
> Assignee: xdoclet-devel (Use for new issues)
>
>
> This is somewhat related to XDT-879.
> In version 1.2.3, ModuleFinder.resetFoundModules is reset,
> but the DocletTask.subtaskMap and subtaskNameMap are not.
> This results in re-scanning for modules for each DocletTask,
> which is good. However, when you use ejbdoclet and webdoclet
> together, you get an AMBIGUOUS_SUBTASK_DEFINITION error
> for 'service-endpoint', which is in both the ejb and the web
> module (ServiceEndpointSubTask).
> This is because when one task is finished (say ejbdoclet) and
> the next one is initializing (say webdoclet), the static subtaskMap is still
> there containing the subtasks of ejbdoclet (which contains 'service-endpoint'.
> DocletTask.registerModules then sees the duplicate taskname and different
> packages for the classes, and bails.
> Btw, a fix is to set subtaskMap and subtaskNameMap to null - works fine!
> The strange thing is that this doesn't normally occur in Ant,
> but i discovered this when running a custom app embedding ant
> (my maven 2 implementation of the xdoclet plugin).
> By the slight chance that this is not a bug, can someone tell me
> how to do it correctly then? See
> http://www.neonics.com/projects/maven-xdoclet-plugin/ for the source.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel