2014-02-13 2 views
2

При попытке запуска GWT: бег с IntelliJ Maven панели проектов, это то, что я получаю:Run GWT из мавена - IntelliJ

[WARNING] GWT plugin is configured to detect modules, but none were found. 
[ERROR] Missing required argument 'module[s]' 
[ERROR] Google Web Toolkit 2.4.0 
[ERROR] DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s] 
[ERROR] 

Что такое работа вокруг этого для IntelliJ?

ответ

0

Пожалуйста, обратите внимание на эту страницу:

http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html

Там вы можете найти все свойства, которые вы можете установить для вас GWT: цель бега.

Это, как вы определяете модуль в вас pom.xml:

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>gwt-maven-plugin</artifactId> 
    <version>${gwtVersion}</version> 
    <dependencies> 
     <dependency> 
      <groupId>com.google.gwt</groupId> 
      <artifactId>gwt-user</artifactId> 
      <version>${gwtVersion}</version> 
     </dependency> 
     <dependency> 
      <groupId>com.google.gwt</groupId> 
      <artifactId>gwt-dev</artifactId> 
      <version>${gwtVersion}</version> 
     </dependency> 
    </dependencies> 
    <executions> 
     <execution> 
      <goals> 
       <goal>compile</goal> 
      </goals> 
      <configuration> 
       <runTarget>index.html</runTarget> 
       <modules> 
        <module>com.yourcompany.YourModule</module> 
       </modules> 
       <logLevel>INFO</logLevel> 
       <failOnError>true</failOnError> 
       <closureCompiler>true</closureCompiler> 
       <extraJvmArgs>-Xms512m -Xmx8g -XX:MaxPermSize=512m</extraJvmArgs> 
       <localWorkers>8</localWorkers> 
       <copyWebapp>true</copyWebapp> 
       <gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath> 
       <!-- and so on... take a look at the plugin page for more options --> 
      </configuration> 
     </execution> 
    </executions> 
</plugin> 

Кстати, вы должны использовать последнюю версию GWT и GWT Maven Plugin (в настоящее время 2.7.0).

+0

Хорошая ссылка, но образец кода не является правильным отступом тегов в образце xml, и ему не хватает . Также тег не должен находиться внутри тега . – emery

Смежные вопросы