1

maven-gwt プロジェクトからコンパイル レポートを生成しようとしています。

このサイトによると、生成されたソース フォルダーに生成されたレポートが表示されます。ただし、これらのいずれかを実行すると:

mvn gwt:compile-report
mvn gwt:compile-report -DcompileReport
mvn gwt:compile-report -DcompileReport=true
mvn gwt:compile-report -DcompileReport=Test

私は得る:

[WARNING] No compile reports found, did you compile with compileReport option set ?

私のpom.xmlファイルでは、レポート内容を次のように設定しました。

<reporting>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>2.5.0</version>
            <reportSets>
                <reportSet>
                    <id>Report</id>
                <reports>
                    <report>Test</report>
                </reports>
                </reportSet>
            </reportSets>
        </plugin>
    </plugins>
</reporting>

編集:

Pom が次のように変更されました。

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <version>2.5.0</version>
    <executions>
      <execution>
        <goals>
          <goal>compile</goal>
          <goal>test</goal>
          <goal>i18n</goal>
          <goal>generateAsync</goal>
        </goals>
        <configuration>
          <draftCompile>true</draftCompile>
          <compileReports>true</compileReports>
          <sources>
            <source>target/generated-sources/gwt</source>
          </sources>
        </configuration>
      </execution>
    </executions>
    <!-- Plugin configuration. There are many available options, -->
    <!--see gwt-maven-plugin documentation at codehaus.org -->
    <configuration>
      <runTarget>Bondegard.html</runTarget>
      <compileReports>true</compileReports>
      <logLevel>SPAM</logLevel>
      <hostedWebapp>${webappDirectory}</hostedWebapp>
      <i18nMessagesBundle>pl.spot.bondegard.bondegard.client.Messages</i18nMessagesBundle>
    </configuration>
  </plugin>

そしていまだに報告がありません。他に提案はありますか?

4

1 に答える 1

4

コンパイル レポートはビルド中に作成され (gwt:compileコンパイルレポートが有効化されている場合)、gwt:compile-reportMaven サイトにのみ公開されます。

于 2013-01-15T13:52:29.353 に答える