私は一日中実行するのに苦労してきましたGWTP
。基本的に、Eclipseプラグインを使用してgwtアプリケーションをMaven
作成しました。GWTP
そして、簡単なウェルカムプレゼンターを追加しました。Mavenなしで試してみましたが、Eclipseからの実行でうまく機能します。
ただし、Mavenプロジェクトに変換すると(m2eclipseプラグインを使用しています)、すべてが壊れます。そこで、必要な依存関係とgwtp依存関係を追加しました。
<dependency>
<groupId>com.google.gwt.inject</groupId>
<artifactId>gin</artifactId>
<version>1.5.0</version>
</dependency>
<!-- MVP component -->
<dependency>
<groupId>com.gwtplatform</groupId>
<artifactId>gwtp-all</artifactId>
<version>${gwtp.version}</version>
</dependency>
ただし、実行しようとすると、次のエラーが発生します。
Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.event.shared.EventBus' (did you forget to inherit a required module?)
MavenでGWTPを作成するのが非常に難しい理由についてのアイデア。