maven - mvn integration-test - can't find myproject.gwt.xml to run GwtTest*.java test cases -


i building gwt project, , having problems executing gwttest*.java unit tests. can run project in developer mode (mvn gwt:run). when go run unit tests using 'mvn integration-test' or 'mvn gwt:test' receive following error.

loading inherited module 'com.mycompany.site.client.myproject'    [error] unable find 'com/mycompnay/site/client/myproject.gwt.xml' on classpath; typo, or maybe forgot include classpath entry source? 

below pom.xml

<project   xmlns="http://maven.apache.org/pom/4.0.0"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <!-- pom file generated gwt webappcreator -->  <modelversion>4.0.0</modelversion>  <groupid>com.mycompany</groupid>  <artifactid>myproject</artifactid>  <packaging>war</packaging>  <version>0.0.1-snapshot</version>  <name>gwt maven archetype</name>   <properties>    <!-- convenience property set gwt version -->    <gwtversion>2.4.0</gwtversion>    <!-- gwt needs @ least java 1.5 -->    <webappdirectory>${project.build.directory}/${project.build.finalname}</webappdirectory>    <project.build.sourceencoding>utf-8</project.build.sourceencoding>  </properties>   <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>junit</groupid>      <artifactid>junit</artifactid>      <version>4.7</version>      <scope>test</scope>    </dependency>    <dependency>      <groupid>javax.validation</groupid>      <artifactid>validation-api</artifactid>      <version>1.0.0.ga</version>      <scope>test</scope>    </dependency>    <dependency>      <groupid>javax.validation</groupid>     <artifactid>validation-api</artifactid>     <version>1.0.0.ga</version>     <classifier>sources</classifier>     <scope>test</scope>    </dependency>   </dependencies>  <build>   <!-- generate compiled stuff in folder used developing mode -->   <outputdirectory>${webappdirectory}/web-inf/classes</outputdirectory>    <plugins>      <!-- gwt maven plugin -->     <plugin>       <groupid>org.codehaus.mojo</groupid>       <artifactid>gwt-maven-plugin</artifactid>       <version>2.4.0</version>       <executions>         <execution>           <goals>             <goal>compile</goal>             <goal>test</goal>             <goal>i18n</goal>             <goal>generateasync</goal>             <goal>mergewebxml</goal>           </goals>         </execution>       </executions>       <!-- plugin configuration. there many available options, see        gwt-maven-plugin documentation @ codehaus.org -->       <configuration>         <runtarget>myproject.html</runtarget>         <hostedwebapp>${webappdirectory}</hostedwebapp>         <i18nmessagesbundle>com.mycompany.site.client.messages</i18nmessagesbundle>        </configuration>     </plugin>    <!-- copy static web files before executing gwt:run -->   <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-war-plugin</artifactid>     <version>2.1.1</version>     <executions>       <execution>         <phase>compile</phase>         <goals>           <goal>exploded</goal>         </goals>       </execution>     </executions>     <configuration>       <webappdirectory>${webappdirectory}</webappdirectory>     </configuration>   </plugin>   <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-compiler-plugin</artifactid>     <version>2.3.2</version>     <configuration>       <source>1.5</source>       <target>1.5</target>     </configuration>   </plugin> </plugins> </build> </project> 

i using default project structure generated maven when creating gwt project using gwt maven archetype. myproject.gwt.xml located in src/main/resources/com/mycompany/site/myproject.gwt.xml. on problem appreciated.

i figured out problem. miss-understood suppose returned from

public string getmodulename() { . . . } 

i returning path entry point class, suppose return path gwt.xml file. miss-understood 'module' referring too.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -