xdoclet-maven-plugin は、基本的に Antプラグイン の wrapper。
AntからのXdocletについては、Ant タスク雛型集#struts を参照
<?xml version="1.0"?> <project> <modelVersion>4.0.0</modelVersion> <groupId>com.snail</groupId> <artifactId>helloStruts</artifactId> <packaging>war</packaging> <name>helloStruts Maven Webapp</name> <version>1.0-SNAPSHOT</version> <url>http://maven.apache.org</url> <build> <finalName>helloStruts</finalName> <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> <webdoclet destdir="${basedir}/src/main/webapp/WEB-INF" mergedir="${basedir}/src/main/strutsconfig" verbose="true" force="true" excludedtags="@version,@author,@todo"> <fileset dir="${basedir}/src/main/java"> <include name="**/*.java"></include> </fileset> <strutsconfigxml version="1.2"></strutsconfigxml> <strutsvalidationxml></strutsvalidationxml> </webdoclet> </tasks> </configuration> </execution> </executions> </plugin> ・・・ </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.0</version> <scope>test</scope> </dependency> ・・・ </dependencies> </project>