2013-08-02 1 views
0

최근에 Eclipse (m2eclipse)에서 Maven을 사용하기 시작했습니다. 불행히도 최근에 이클립스에서 애플리케이션을 실행할 수 없었다. 오류가 발생합니다.Eclipse/Maven에서 gwt 프로젝트를 배포하는 중 오류가 발생했습니다.

Loading modules src.main.java.com.ohapp.webconfuturo.WebConfuturo Loading inherited module 'src.main.java.com.ohapp.webconfuturo.WebConfuturo' [ERROR] Unable to find 'src/main/java/com/ohapp/webconfuturo/WebConfuturo.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doStartup method

이미 확인했는데 파일이 있습니다. Eclipse에서는 보이지 않지만 파일 시스템에 있습니다.

이상하게도 Maven (mvn gwt : run)을 통해 프로그램을 실행하면 잘 작동합니다. 내가 잘못

<!-- Dependecies --!> 

    <build> 


     <!-- Generate compiled stuff in the folder used for development mode --> 
     <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> 

     <plugins> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>3.1</version> 
       <configuration> 
        <source>1.6</source> 
        <target>1.6</target> 
       </configuration> 
       <dependencies> 
        <!-- Need to run the RF Validation tool. This works on both the command-line 
         and in Eclipse, provided that m2e-apt is installed. --> 
        <dependency> 
         <groupId>com.google.web.bindery</groupId> 
         <artifactId>requestfactory-apt</artifactId> 
         <version>${gwt.version}</version> 
        </dependency> 
       </dependencies> 
      </plugin> 


      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-war-plugin</artifactId> 
       <version>2.4</version> 
       <configuration> 
        <archiveClasses>true</archiveClasses> 
        <webResources> 
         <!-- in order to interpolate version from pom into appengine-web.xml --> 
         <resource> 
          <directory>${basedir}/src/main/webapp/WEB-INF</directory> 
          <filtering>true</filtering> 
          <targetPath>WEB-INF</targetPath> 
         </resource> 

         <resource> 
          <directory>${project.build.directory}/javascripts</directory> 
          <filtering>false</filtering> 
          <targetPath>js/app</targetPath> 
         </resource> 
        </webResources> 
       </configuration> 
      </plugin> 

      <plugin> 
       <groupId>net.kindleit</groupId> 
       <artifactId>maven-gae-plugin</artifactId> 
       <version>0.9.3</version> 
       <configuration> 
        <unpackVersion>${gae.version}</unpackVersion> 
       </configuration> 
       <executions> 
        <execution> 
         <phase>validate</phase> 
         <goals> 
          <!--suppress MavenModelInspection --> 
          <goal>unpack</goal> 
         </goals> 
        </execution> 
       </executions> 
       <dependencies> 
        <dependency> 
         <groupId>net.kindleit</groupId> 
         <artifactId>gae-runtime</artifactId> 
         <version>${gae.version}</version> 
         <type>pom</type> 
        </dependency> 
       </dependencies> 
      </plugin> 

      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>gwt-maven-plugin</artifactId> 
       <version>2.5.1</version> 

       <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
        documentation at codehaus.org --> 
       <configuration> 
        <!-- URL that should be automatically opened in the GWT shell (gwt:run). --> 
        <runTarget>WebConfuturo.html</runTarget> 
        <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) --> 
        <compileReport>true</compileReport> 
        <module>com.ohapp.webconfuturo.WebConfuturo</module> 
        <logLevel>INFO</logLevel> 
        <style>${gwt.style}</style> 

        <copyWebapp>true</copyWebapp> 
       </configuration> 

       <dependencies> 
        <dependency> 
         <groupId>com.google.gwt</groupId> 
         <artifactId>gwt-user</artifactId> 
         <version>${gwt.version}</version> 
        </dependency> 
        <dependency> 
         <groupId>com.google.gwt</groupId> 
         <artifactId>gwt-dev</artifactId> 
         <version>${gwt.version}</version> 
        </dependency> 
       </dependencies> 
       <!-- JS is only needed in the package phase, this speeds up testing --> 
       <executions> 
        <execution> 
         <phase>prepare-package</phase> 
         <goals> 
          <goal>compile</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 

      <!-- Copy static web files before executing gwt:run --> 
      <plugin> 
       <artifactId>maven-resources-plugin</artifactId> 
       <version>2.4.2</version> 
       <executions> 
        <execution> 
         <phase>compile</phase> 
         <goals> 
          <goal>copy-resources</goal> 
         </goals> 
         <configuration> 
          <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory> 
          <resources> 
           <resource> 
            <directory>src/main/webapp</directory> 
           </resource> 
          </resources> 
         </configuration> 
        </execution> 
       </executions> 
      </plugin> 

     </plugins> 

     <pluginManagement> 
      <plugins> 
       <!--This plugin's configuration is used to store Eclipse m2e settings 
        only. It has no influence on the Maven build itself. --> 
       <plugin> 
        <groupId>org.eclipse.m2e</groupId> 
        <artifactId>lifecycle-mapping</artifactId> 
        <version>1.0.0</version> 
        <configuration> 
         <lifecycleMappingMetadata> 
          <pluginExecutions> 
           <pluginExecution> 
            <pluginExecutionFilter> 
             <groupId>org.datanucleus</groupId> 
             <artifactId>maven-datanucleus-plugin</artifactId> 
             <versionRange>[1.1.4,)</versionRange> 
             <goals> 
              <goal>enhance</goal> 
             </goals> 
            </pluginExecutionFilter> 
            <action> 
             <ignore></ignore> 
            </action> 
           </pluginExecution> 
           <pluginExecution> 
            <pluginExecutionFilter> 
             <groupId>net.kindleit</groupId> 
             <artifactId>maven-gae-plugin</artifactId> 
             <versionRange>[0.7.3,)</versionRange> 
             <goals> 
              <goal>unpack</goal> 
             </goals> 
            </pluginExecutionFilter> 
            <action> 
             <execute /> 
            </action> 
           </pluginExecution> 
          </pluginExecutions> 
         </lifecycleMappingMetadata> 
        </configuration> 
       </plugin> 
      </plugins> 
     </pluginManagement> 

    </build> 

를하고있는 중이 야 무엇 : (종속성 없음)

내 pom.xml 파일은 다음과 같다?

고마워요.

답변

0

나는 이것을 알아 냈습니다. 실행 설정의 인수가 잘못되었습니다. 해결

com.ohapp.appname.AppName 

그리고 문제 : 나는 그것을 변경

src.main.java.com.ohapp.appname.AppName 

: 나는 전체 경로로 참조 및 소스 폴더에 대한 상대하지하여 gwt.xml 파일을했다.

변경을 한 사람이 아니기 때문에 내가 어떻게 이런 일이 일어 났는지 알 수 없습니다.

관련 문제