MavenからのXdocletの実行

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>

MavenでのXdoclet(webdoclet)のディレクトリ構成

mavenXdoclet.png

Java Maven


添付ファイル: filemavenXdoclet.png 2372件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2007-02-22 (木) 03:18:21 (6267d)
Short-URL: https://at-sushi.com:443/pukiwiki/index.php?cmd=s&k=613171651e
ISBN10
ISBN13
9784061426061