2010-08-30 40 views
1

我一直試圖讓gwt-maven-plugin爲我工作。希望有人能幫助我。gwt-maven-plugin在獲取gwt-dev神器時附加「-linux」

我正在使用gwt-maven-plugin 1.2並試圖使它與gwt 2.1.0.M3一起工作。我們在工作中有聯繫回購,我已經把最新的gwt罐子放在那裏。嘗試下載gwt-dev jar時,插件失敗。

了GWT-dev的罐子位於2.1.0.M3/GWT-DEV-2.1.0.M3.jar
插件嘗試下載2.1.0.M3/GWT-DEV-2.1 .0.M3-linux.jar

我在gwt-dev上的任何地方都沒有依賴關係,插件會照顧它。我怎樣才能阻止它附加「-linux」到它?我知道我可以在我的repo中更改jar名稱,或者在我的本地機器上手動設置它,但是我想弄清楚如何在nexus上運行它,因爲我們有幾個開發人員在同時。

謝謝!

回答

1

您應該將gwt-maven-plugin升級到版本1.2,它對GWT-2.0有一定的支持。
從GWT-2.0開始,gwt-dev jar不再分佈在每個平臺上 - 舊版本的gwt-maven-plugin不知道的事實。

+0

到版本2.1不是1.2 – 2010-11-09 11:59:47

+0

在撰寫本文時是1.2版本,但我發現版本2.1.0已於11月2日發佈到中央Maven回購協議中。我還沒有嘗試過這個新版本。 – crowne 2010-11-09 20:12:05

1

我遇到同樣的問題。這裏是爲我工作,這是我從這個樣本收集POM:http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/pom.xml

添加到您的插件式回購:

<pluginRepositories> 
    <pluginRepository> 
     <id>gwt-plugin-repo</id> 
     <url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven</url> 
     <name>Google Web Toolkit Plugin Repository</name> 
    </pluginRepository> 
</pluginRepositories> 

設置你的GWT-Maven的插件來1.3.1.google

<plugins> 
    <plugin> 
     <groupId>org.codehaus.mojo</groupId> 
     <artifactId>gwt-maven-plugin</artifactId> 
     <version>1.3.1.google</version> 
1

我試圖升級我的項目GWT 2.1,並與東西波希米亞說與

<repository> 
    <id>googlecode</id> 
    <url>http://code.google.com/p/google-web-toolkit/source/browse/#svn/2.1.0/gwt/maven</url> 
</repository> 

我成功地這樣做了。