xdoclet-maven-plugin bug |
First, I need thank Langlois for his great help. I only give the detail of his solution. Please read his solution first. http://mail-archives.apache.org/mod_mbox/maven-users/200602.mbox/%3C20060211173712.19701.qmail@web26813.mail.ukl.yahoo.com%3E This is a bug of xdoclet-maven-plugin, the reason is some parameter like ${project.build.directory} is not reset between these two xdoclet calls. Then the interface of second ejb module is generated to the first module directory. You can fix it to reset these parameters forcibly by specifying destDir attributes on the subtasks , like below: <remoteinterface destdir="${project.build.directory}/generated-sources/xdoclet"></remoteinterface> <localinterface destdir="${project.build.directory}/generated-sources/xdoclet"></localinterface> <homeinterface destdir="${project.build.directory}/generated-sources/xdoclet"></homeinterface> <localhomeinterface destdir="${project.build.directory}/generated-sources/xdoclet"></localhomeinterface> <entitycmp destDir="${project.build.outputDirectory}"></entitycmp> <entitycmp destDir="${project.build.directory}"></entitycmp> |