2010-10-29 103 views
5

有沒有人設法讓GWT 2.1的發佈與Codehaus Maven插件配合使用?GWT 2.1和Codehaus Maven插件

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

中的1.2穩定版本似乎並沒有工作。我發現了一個在SVN Maven的回購這裏所說的1.3.2版本從GWT

http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/

但是當我運行它,我得到以下錯誤信息......

未能執行目標 org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:在項目中編譯 (默認)pipeda-webapp: 執行默認目標 org.codehaus.mojo:gwt-maven-plugin:1.3.2 .google:編譯 失敗。 NullPointerException異常 - > [幫助 1]

回答

4

GWT-Maven的插件2.1.0在行家中心現在

3

隨着

<pluginRepositories> 
    <pluginRepository> 
     <id>gwt-maven.snapshots</id> 
     <url>http://nexus.codehaus.org/snapshots</url> 
     <snapshots> 
      <enabled>true</enabled> 
     </snapshots> 
     <releases> 
      <enabled>false</enabled> 
     </releases> 
    </pluginRepository> 
</pluginRepositories> 

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>gwt-maven-plugin</artifactId> 
    <version>2.1-SNAPSHOT</version> 
</plugin> 

我相信我有它與GWT 2.1工作。

你會得到這樣的警告:

[WARNING] You're project declares dependency on gwt-user 2.1.0. This plugin is designed for version 2.1-SNAPSHOT

但仍彙編完成。

+0

似乎工作正常。謝謝! – stuff22 2010-11-03 16:35:46