1

我一直在努力让 gwt-maven-plugin 为我工作。希望有人可以帮助我。

我正在使用 gwt-maven-plugin 1.2 并试图让它与 gwt 2.1.0.M3 一起工作。我们有一个 nexus repo 在工作,我把最新的 gwt jar 放在那里。尝试下载 gwt-dev jar 时插件失败。

gwt-dev jar 位于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,我的 pom 上没有任何依赖项,插件负责处理。如何阻止它向其附加“-linux”?我知道我可以在我的 repo 中更改 jar 的名称,或者在我的本地机器上手动设置它,但我想弄清楚如何让它在 nexus 上工作,因为我们有几个开发人员在这方面工作同时。

谢谢!

4

3 回答 3

1

我试图将我的项目升级到 gwt 2.1,并使用 Bohemian 所说的内容和

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

我成功地做到了。

于 2010-12-09T20:25:37.637 回答
1

您应该将您的gwt-maven-plugin升级到版本 1.2,它对 GWT-2.0 有一些支持。
从 GWT-2.0 开始,gwt-dev jar 不再按平台单独分发 - 旧版本的 gwt-maven-plugin 不知道这一事实。

于 2010-09-06T17:10:30.093 回答
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-plugin 设置为 1.3.1.google

<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.3.1.google</version>
于 2010-09-23T22:02:37.857 回答