2013-01-15 1 views
1

maven-gwt 프로젝트에서 컴파일 보고서를 생성하려고합니다.gwt : compileReport를 사용하여 컴파일 보고서 생성

this 사이트에 따르면 생성 된 소스 폴더에 생성 된 보고서가 표시됩니다. 내가 그 중 하나를 실행 그러나 때

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

를 내가 얻을 : 내 pom.xml 파일에서

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

는 내가보고 물건을 설정 예 :

<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> 

편집 :

은 응원단로 변경 :

<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

빌드 보고서 (gwt:compilecompile report activated) 중에 컴파일 보고서가 생성되고 gwt:compile-report은 메이븐 사이트에만 게시됩니다.

+0

오케이. 나는 그것을 시도했지만 gwt : compile로 컴파일하는 동안 컴파일러는 Async Interfaces를 보거나 생성하지 않는다. gwt : compilation pass를 실행하면 보고서가 생성되지 않습니다. – Cornelius

+0

'gwt : compile'은 GWT 컴파일만을 호출합니다. GWT-RPC를위한 _sync_ 인터페이스에서 _async_ 인터페이스를 생성하려면,'gwt : generateAsync'가 필요합니다; 그에 따라 POM을 구성하십시오. –

+0

'pom.xml '을 변경했습니다. 나는 무엇을 놓치고 있습니까? – Cornelius