[ http://jira.codehaus.org/browse/MJXR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88578 ]
Fernando Lindner commented on MJXR-21: -------------------------------------- Dennis, here comes a build tag example for this bug (It includes the workaround): {code:xml} ... <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xdoclet-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>xdoclet</goal> </goals> <configuration> <tasks> <!-- start: workaround for MJXR-21 --> <mkdir dir = "${project.build.directory}/generated-sources/xdoclet"/> <!-- end: workaround for MJXR-21 --> <webdoclet destdir = "${project.build.directory}/${project.build.finalName}/WEB-INF"> <fileset dir = "src/main/java"> <include name = "**/*.java"/> </fileset> <strutsconfigxml version = "1.1" destDir = "${project.build.directory}/${project.build.finalName}/WEB-INF" mergeDir = "src/main/config/xdoclet-merge"/> </webdoclet> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build> ... {code} > Jxr plugin fails if xdoclet executed without sources generation > --------------------------------------------------------------- > > Key: MJXR-21 > URL: http://jira.codehaus.org/browse/MJXR-21 > Project: Maven 2.x JXR Plugin > Issue Type: Bug > Reporter: Fernando Lindner > Priority: Critical > > JXR plugin always tries to find directory "target/generated-sources/xdoclet" > if a xdoclet execution is set. For instance, if a webdoclet task is used, no > "target/generated-sources/xdoclet" directory should be created, resulting in > a build error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira