On 14 February 2011 00:40, Henry <[email protected]> wrote:
> Unfortunately, after I upgrading to the new version of the plugin, the
> internal Jetty can't find the module HTML (with the reference to the
> GWT js file) as well as the coresponding CSS and web.xml file anymore.
> It seems that a new folder was created in target/${artifactId}-$
> {version}, which contains the compiled GWT Javascript and all static
> resources besides the entry point HTML, CSS and web.xml. There is also
> a war folder that is always created, which contains all necessary
> resources, including the HTML & CSS file. It seems that the 1.2
> version of the plugin used this war folder, whereas the newer versions
> use the folder under target, which doesn't contain vital parts of the
> compiler output. Also before there wasn't any compiler output under
> the target folder.

I'm using Jetty together with the GWT Maven plugin with the configuration below.

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <version>2.1.0-1</version>
  <configuration>
    <runTarget>/index.html</runTarget>
    
<hostedWebapp>${project.build.directory}/${project.artifactId}</hostedWebapp>
    
<webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
    <copyWebapp>true</copyWebapp>
  </configuration>
</plugin>

<plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>jetty-maven-plugin</artifactId>
  <version>8.0.0.M0</version>
  <configuration>
    <webAppConfig>
      <contextPath>/${project.artifactId}</contextPath>
    </webAppConfig>
  </configuration>
</plugin>

<outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/classes</outputDirectory>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to