2017-08-16 3 views
1

私はEclipse Neonを使用しており、マーケットプレイスからGWT Eclipseプラグインをインストールしています。 私はフォルダ構造がソースフォルダがGWTプロジェクトに属していません

enter image description here

私のようなものです

enter image description here

チェックボックス 'プロジェクトのサンプルコードを生成します' 'Mavenプロジェクトを生成します' と>新規作成をクリック新しいGWTのWebアプリケーションと選択しますクライアントフォルダに新しいクラスを作成しようとしています。しかし、「ソースフォルダはGWTプロジェクトに属していません」というエラーが表示されます。私は必要なフォルダを参照することができません.Itはsrc/main/javaのみを表示します。私はGWTに非常に新しいです

私のpom.xml

<?xml version="1.0" encoding="UTF-8"?> 

http://maven.apache.org/maven-v4_0_0.xsd ">

<!-- POM file generated with GWT webAppCreator --> 
<modelVersion>4.0.0</modelVersion> 
<groupId>com.asayama.docs.gwt.angular.examples</groupId> 
<artifactId>Gwt_angular_examples</artifactId> 
<packaging>war</packaging> 
<version>1.0-SNAPSHOT</version> 
<name>com.asayama.docs.gwt.angular.examples.Gwt_angular_examples</name> 

<properties> 
    <!-- Convenience property to set the GWT version --> 
    <gwtVersion>2.7.0</gwtVersion> 
    <!-- Note: GWT needs at least java 1.6 --> 
    <maven.compiler.source>1.7</maven.compiler.source> 
    <maven.compiler.target>1.7</maven.compiler.target> 
</properties> 

<dependencyManagement> 
    <dependencies> 
     <!-- ensure all GWT deps use the same version (unless overridden) --> 
     <dependency> 
      <groupId>com.google.gwt</groupId> 
      <artifactId>gwt</artifactId> 
      <version>${gwtVersion}</version> 
      <scope>import</scope> 
     </dependency> 
    </dependencies> 
</dependencyManagement> 

<dependencies> 
    <dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-servlet</artifactId> 
     <version>${gwtVersion}</version> 
     <scope>runtime</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-user</artifactId> 
     <version>${gwtVersion}</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-dev</artifactId> 
     <version>${gwtVersion}</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-codeserver</artifactId> 
     <version>${gwtVersion}</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.asayama.gwt.angular</groupId> 
     <artifactId>gwt-angular-ng</artifactId> 
     <version>0.2.4</version> 
    </dependency> 
    <dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-codeserver</artifactId> 
     <version>${gwtVersion}</version> 
    </dependency> 
</dependencies> 

    <build> 
<resources> 
    <resource> 
    <directory>src/main/java</directory> 
    <includes> 
     <include>**/*</include> 
    </includes> 
    </resource> 
</resources> 
<plugins> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-compiler-plugin</artifactId> 
    </plugin> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-resources-plugin</artifactId> 
    <executions> 
     <execution> 
     <id>copy-source</id> 
     <phase>validate</phase> 
     <goals> 
      <goal>copy-resources</goal> 
     </goals> 
     <configuration> 
      <outputDirectory>${basedir}/target/classes/com/asayama/docs/gwt/angular/site/examples/public/src/</outputDirectory> 
      <resources> 
      <resource> 
       <directory>src</directory> 
      </resource> 
      </resources> 
     </configuration> 
     </execution> 
    </executions> 
    </plugin> 
</plugins> 

+0

プロジェクトのビルドパスに 'src/main/java'がありますか? – Andrei

+0

はいビルドパスの中 –

+0

'.gwt.rpc'ファイルに' 'のような行がありますか? – Andrei

答えて

0

プロパティ - > GWT - >一般設定 - > GWTの使用を確認する

Figure 1

関連する問題