GWT Module  not found in project sources or resources
-----------------------------------------------------

                 Key: MGWT-306
                 URL: https://jira.codehaus.org/browse/MGWT-306
             Project: Maven 2.x GWT Plugin
          Issue Type: Story
            Reporter: Sunny Lee


I Use Maven 2.2.1 and GWT 2.3
my source directory : src/main/java/server
                      src/main/java/client    (with Management.gwt.xml)
                      src/main/resources
could I using maven-compiler-plugin 2.3.2 with gwt-maven-plugin 2.3.0?
1. I get a "GWT Module  not found in project sources or resources" message when 
I using this pom.xml
<build>
  <plugins>
    <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>UTF-8</encoding>
        </configuration>
     </plugin>
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.3.0</version>
        <executions>
          <execution>
            <configuration>
              <module>com.runtime.Management</module>
              <warSourceDirectory>${basedir}/webapps</warSourceDirectory>
              <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
              <compilerVersion>1.6compilerVersion>
            </configuration>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
</build>

2. I try this pom.xml to solve "GWT Module  not found in project sources or 
resources" message.
   but I coudn't get classes of "/src/main/java/server" . there are only some 
classes of "/src/main/java/client" .
   I tried this one on linux server.
<build>

<sourceDirectory>src/main/java/client</sourceDirectory>

  <plugins>
    <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>UTF-8</encoding>

                <includes>
                  <include>src/main/java/server/**/*.java</include>
                  <include>src/main/java/client/**/*.java</include>
                </includes>
        </configuration>
     </plugin>
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.3.0</version>
        <executions>
          <execution>
            <configuration>
              <module>com.runtime.Management</module>
              <warSourceDirectory>${basedir}/webapps</warSourceDirectory>
              <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
              <compilerVersion>1.6compilerVersion>
            </configuration>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
</build>

What can I do to compile well?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to