eclipse - Create a GWT Maven Project -


i'm trying create new project eclipse in order create gwt application under maven 2 system. have create project follow mvn command

mvn archetype:generate -darchetyperepository=repo1.maven.org -darchetypegroupid=org.codehaus.mojo -darchetypeartifactid=gwt-maven-plugin -darchetypeversion=2.3.0 

i have installed follow eclipse plugins: * m2eclipse * egit * gwt plugin

here pom file:

<?xml version="1.0" encoding="utf-8"?> <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.mobc3.paperquid</groupid>   <artifactid>backoffice</artifactid>   <packaging>war</packaging>   <version>1.0.0-snapshot</version>   <name>gwt maven archetype</name>    <properties>     <!-- convenience property set gwt version -->     <gwtversion>2.3.0</gwtversion>     <!-- gwt needs @ least java 1.5 -->     <maven.compiler.source>1.5</maven.compiler.source>     <maven.compiler.target>1.5</maven.compiler.target>     <webappdirectory>${project.build.directory}/${project.build.finalname}</webappdirectory>   </properties>    <dependencies>     <dependency>       <groupid>com.google.gwt</groupid>       <artifactid>gwt-servlet</artifactid>       <version>2.3.0</version>       <scope>runtime</scope>     </dependency>     <dependency>       <groupid>com.google.gwt</groupid>       <artifactid>gwt-user</artifactid>       <version>2.3.0</version>       <scope>provided</scope>     </dependency>       <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>4.7</version>       <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.3.0</version>         <executions>           <execution>             <goals>               <goal>compile</goal>               <goal>test</goal>               <goal>i18n</goal>               <goal>generateasync</goal>             </goals>           </execution>         </executions>         <!-- plugin configuration. there many available options, see gwt-maven-plugin            documentation @ codehaus.org -->         <configuration>           <runtarget>backoffice.html</runtarget>           <hostedwebapp>${webappdirectory}</hostedwebapp>           <i18nmessagesbundle>com.mobc3.paperquid.backoffice.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>      </plugins>   </build>  </project> 

i can compile , deploy application using linux shell have many problems build , run application inside eclipse.

i haven't found tutorial explain how create step step gwt application under maven inside eclipse.

can me?

one more option:

  • make gwt project using gwt plugin in eclipse. have eclipse gwt project.
  • select project in project explorer, right-click it, choose configure. select convert maven project. gwt-maven project.
  • now add necessary dependencies pom.xml.

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -