[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1435?page=comments#action_17522 ]
Kenney Westerhof commented on XDT-1435: --------------------------------------- This is definitely a Maven issue. You somehow don't have artifacts resolved. How are you calling the plugin? What version of the xdoclet-maven-plugin did you compile? No other errors? The stacktrace isn't quite complete.. Btw you better move the post - this is not the place for this :) > 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 xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel