如何使用Maven GWT插件将参数传递给GWT编译器?

时间:2012-02-24 09:00:06

标签: java gwt maven

我需要在gwt-maven-plugin配置中将“-deploy src / main / webapp / WEB-INF / deploy /”参数传递给GWT Compiler。

我的目的是使用gwt-log集成远程记录器。

要实现我需要将上述参数传递给GWT编译器。

谢谢! Bhavesh

2 个答案:

答案 0 :(得分:3)

请参阅gwt-maven-plugin

<project>
  [...]
  <build>
    <plugins>
      [...]
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.4.0</version>
        <executions>
          <execution>
            <configuration>
              <deploy>src/main/webapp/WEB-INF/deploy/</deploy>
            </configuration>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      [...]
    </plugins>
  </build>
  [...]
</project>

如上所述,您需要升级。

答案 1 :(得分:1)

看起来此参数仅在gwt-maven-plugin的2.3.0-1版本之后可用(请参阅here)。

相关问题