ear
モジュールを使用してアプリケーションを開発しgwt web module
ていejb
ます。maven は正常にビルドされます。継承しgxt module
ました。ホスト モードでは、アプリケーションがレンダリングされません。次gwt dev mode
のエラーが表示されます。
[エラー] 62 行目: com.sencha.gxt.widget.core.client.Window 型のソース コードがありません。必要なモジュールを継承するのを忘れましたか? ERROR] 行 71: タイプ com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer のソース コードがありません。必要なモジュールを継承するのを忘れましたか? [エラー] 73 行目: com.sencha.gxt.widget.core.client.form.FieldSet 型のソース コードがありません。必要なモジュールを継承するのを忘れましたか? .. ..
00:00:15.285 [エラー] ヒント: モジュールからの継承チェーンを確認してください。必要なモジュールを継承していないか、モジュールがソース パス エントリを適切に追加していない可能性があります
これが私のgwt.xml
<module rename-to='xxx'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.resources.Resources" />
<inherits name="com.sencha.gxt.ui.GXT" />
<entry-point class='com.example.XX'/>
<source path='client'/>
<source path='shared'/>
</module>
そしてここに私の私pom.xml
のものがありますgwt web app
<properties>
<gwtVersion>2.5.1</gwtVersion>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<webappDirectory>${project.build.directory}/${project.build.finalName} </webappDirectory>
</properties>
<build>
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<packagingExcludes>WEB-iNF/web.xml</packagingExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<!-- for development mode -->
<configuration>
<debugSuspend>false</debugSuspend>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<runTarget>xxx/xxx.html</runTarget>
<encoding>UTF-8</encoding>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<noServer>true</noServer>
<port>8080</port>
</configuration>
</plugin>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>2.0.0.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>ejb-api</artifactId>
<version>3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.1.0.GA</version>
<scope>provided</scope>
</dependency>
</dependencies>
私を助けてください。maven
ビルド中にコンパイルエラーはありません