You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maruf Aytekin <aa...@gmail.com> on 2007/01/12 10:05:11 UTC
gwt maven 2
I have a gwt project and I am trying to buil dit with maven 2. I checked
out maven-googlewebtoolkit2-plugin from
|http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed
it and dependencies to .m2 local repository.
I have added this plugin in the pom as follows:
<build>
<plugins>
<plugin>
<groupId>com.totsp.gwt.maven</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<configuration>
<googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
<googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello</googleWebToolkitCompileTarget>
<googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
<sourceDirectories>
<param>${basedir}/src/main/java/</param>
</sourceDirectories>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev-windows</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is
as follows in the eclipse:
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/test/java"
output="target/test-classes"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
When I try to run it as gwt project it cannot find
"com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to set
directory structure. Currently I have orginized directory structure as
maven 2 directory structure. Hello.gwt.xml is located at:
${basedir}/src/main/java/com/mycompany/myapp/customer/
Did anyone use maven 2 to compile and deploy a gwt project? If you
someone can provide more information or sample on this I 'd really
appreceate it. I couldn't find much information on the web about this.
Many Thanks,
Maruf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: gwt maven 2
Posted by Maruf Aytekin <aa...@gmail.com>.
Many thanks for this information.
Maruf
Iulian Costan wrote:
> On 1/12/07, Iulian Costan <iu...@gmail.com> wrote:
>>
>> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
>> >
>> > Thank you Julian,
>> > I have one more quetsion: How do you orginize directory structure? as
>> > maven 2 directory structure or you leave it as gwt directory structure
>> > that gwt project creaton tool is creating?
>>
>>
>
> and the package structure is the one suggested by gwt: client, server,
> public, etc. hope it helps.
>
> /iulian
>
> i have maven2 structure, src/{main,test}/{java,webapp,etc}.
>> by default plugin generates output to to target/gwt/www/${className},
>> adding this you'll get webapp packed and ready to deploy
>> ...
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <version>2.0</version>
>> <configuration>
>> <webResources>
>> <resource>
>> <directory>
>> ${project.build.directory
>> }/gwt/www/${className}
>> </directory>
>> </resource>
>> </webResources>
>> </configuration>
>> </plugin>
>> ...
>>
>> /iulian
>>
>> Many Thanks,
>> > Maruf
>> >
>> > Iulian Costan wrote:
>> > > hey buddy, the following works for me like a charm, using
>> > > gwt-maven-plugin (
>> > >
>> http://codehaus.org/~shinobu/gwt-maven-plugin/index.html<http://codehaus.org/%7Eshinobu/gwt-maven-plugin/index.html>
>>
>> > )
>> > > ...
>> > > <plugin>
>> > > <groupId> org.codehaus.mojo</groupId>
>> > > <artifactId>gwt-maven-plugin</artifactId>
>> > > <configuration>
>> > > <className>${className}</className>
>> > > </configuration>
>> > > <executions>
>> > > <execution>
>> > > <id>gwt-compile</id>
>> > > <phase>compile</phase>
>> > > <goals>
>> > > <goal>compile</goal>
>> > > </goals>
>> > > </execution>
>> > > </executions>
>> > > <dependencies>
>> > > <dependency>
>> > > <groupId>gwt-widgets</groupId>
>> > > <artifactId>gwt-widgets</artifactId>
>> > > <version>0.1.2</version>
>> > > </dependency>
>> > > </dependencies>
>> > > </plugin>
>> > > ...
>> > > where the ${classname} is your module's entry point.
>> > > all you have to do is to checkout, compile and install the plugin.
>> > >
>> > > enjoy!
>> > >
>> > > /iulian
>> > >
>> > > On 1/12/07, Neeraj Bisht <neeraj.bisht@daffodildb.com > wrote:
>> > >>
>> > >> i think you have not included the .xml file the jar or war project
>> > >>
>> > >> use tag < include>*.xml </include>
>> > >>
>> > >> in your pom
>> > >>
>> > >>
>> > >> By the way maven 1.0.2 plugin is quite god and powerfull (we
>> > are using
>> > >> gwt
>> > >> plugin in maven 1.0.2
>> > >>
>> > >> Regards
>> > >> Neeraj
>> > >>
>> > >>
>> > >> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
>> > >> >
>> > >> > I have a gwt project and I am trying to buil dit with maven 2. I
>> > >> checked
>> > >> > out maven-googlewebtoolkit2-plugin from
>> > >> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and
>> > installed
>> > >> > it and dependencies to .m2 local repository.
>> > >> >
>> > >> > I have added this plugin in the pom as follows:
>> > >> >
>> > >> > <build>
>> > >> > <plugins>
>> > >> > <plugin>
>> > >> > <groupId> com.totsp.gwt.maven</groupId>
>> > >> > <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
>> > >> > <configuration>
>> > >> >
>> > >> >
>> > >> >
>> > >>
>> >
>> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
>>
>> > >>
>> > >> >
>> > >> > <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
>> > >> > </googleWebToolkitCompileTarget>
>> > >> > <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
>> > >> > <sourceDirectories>
>> > >> > <param>${basedir}/src/main/java/</param>
>> > >> > </sourceDirectories>
>> > >> > </configuration>
>> > >> > <dependencies>
>> > >> > <dependency>
>> > >> > <groupId> com.google.gwt</groupId>
>> > >> > <artifactId>gwt-dev-windows</artifactId>
>> > >> > <version>1.3</version>
>> > >> > </dependency>
>> > >> > <dependency>
>> > >> > <groupId>com.google.gwt</groupId>
>> > >> > <artifactId>gwt-user</artifactId>
>> > >> > <version>1.3</version>
>> > >> > </dependency>
>> > >> > </dependencies>
>> > >> > </plugin>
>> > >> > </plugins>
>> > >> > </build>
>> > >> > I ran mvn googlewebtoolkit2:compile and it compiled fine.
>> classpath
>> > is
>> > >> > as follows in the eclipse:
>> > >> >
>> > >> > <classpath>
>> > >> > <classpathentry kind="src" path="src/main/java"/>
>> > >> > <classpathentry kind="src" path="src/main/resources"/>
>> > >> > <classpathentry kind="src" path="src/test/java"
>> > >> > output="target/test-classes"/>
>> > >> > <classpathentry kind="output" path="target/classes"/>
>> > >> > <classpathentry kind="con"
>> > >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>> > >> > </classpath>
>> > >> >
>> > >> > When I try to run it as gwt project it cannot find
>> > >> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure
>> how to
>> > set
>> > >> > directory structure. Currently I have orginized directory
>> structure
>> > as
>> > >> > maven 2 directory structure. Hello.gwt.xml is located at:
>> > >> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
>> > >> >
>> > >> > Did anyone use maven 2 to compile and deploy a gwt project? If
>> you
>> > >> > someone can provide more information or sample on this I 'd
>> really
>> > >> > appreceate it. I couldn't find much information on the web about
>> > this.
>> > >> >
>> > >> > Many Thanks,
>> > >> >
>> > >> > Maruf
>> > >> >
>> > >> >
>> > >> >
>> > ---------------------------------------------------------------------
>> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > >> > For additional commands, e-mail: users-help@maven.apache.org
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: gwt maven 2
Posted by Iulian Costan <iu...@gmail.com>.
On 1/12/07, Iulian Costan <iu...@gmail.com> wrote:
>
> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
> >
> > Thank you Julian,
> > I have one more quetsion: How do you orginize directory structure? as
> > maven 2 directory structure or you leave it as gwt directory structure
> > that gwt project creaton tool is creating?
>
>
and the package structure is the one suggested by gwt: client, server,
public, etc. hope it helps.
/iulian
i have maven2 structure, src/{main,test}/{java,webapp,etc}.
> by default plugin generates output to to target/gwt/www/${className},
> adding this you'll get webapp packed and ready to deploy
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <webResources>
> <resource>
> <directory>
> ${project.build.directory
> }/gwt/www/${className}
> </directory>
> </resource>
> </webResources>
> </configuration>
> </plugin>
> ...
>
> /iulian
>
> Many Thanks,
> > Maruf
> >
> > Iulian Costan wrote:
> > > hey buddy, the following works for me like a charm, using
> > > gwt-maven-plugin (
> > > http://codehaus.org/~shinobu/gwt-maven-plugin/index.html<http://codehaus.org/%7Eshinobu/gwt-maven-plugin/index.html>
> > )
> > > ...
> > > <plugin>
> > > <groupId> org.codehaus.mojo</groupId>
> > > <artifactId>gwt-maven-plugin</artifactId>
> > > <configuration>
> > > <className>${className}</className>
> > > </configuration>
> > > <executions>
> > > <execution>
> > > <id>gwt-compile</id>
> > > <phase>compile</phase>
> > > <goals>
> > > <goal>compile</goal>
> > > </goals>
> > > </execution>
> > > </executions>
> > > <dependencies>
> > > <dependency>
> > > <groupId>gwt-widgets</groupId>
> > > <artifactId>gwt-widgets</artifactId>
> > > <version>0.1.2</version>
> > > </dependency>
> > > </dependencies>
> > > </plugin>
> > > ...
> > > where the ${classname} is your module's entry point.
> > > all you have to do is to checkout, compile and install the plugin.
> > >
> > > enjoy!
> > >
> > > /iulian
> > >
> > > On 1/12/07, Neeraj Bisht <neeraj.bisht@daffodildb.com > wrote:
> > >>
> > >> i think you have not included the .xml file the jar or war project
> > >>
> > >> use tag < include>*.xml </include>
> > >>
> > >> in your pom
> > >>
> > >>
> > >> By the way maven 1.0.2 plugin is quite god and powerfull (we
> > are using
> > >> gwt
> > >> plugin in maven 1.0.2
> > >>
> > >> Regards
> > >> Neeraj
> > >>
> > >>
> > >> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
> > >> >
> > >> > I have a gwt project and I am trying to buil dit with maven 2. I
> > >> checked
> > >> > out maven-googlewebtoolkit2-plugin from
> > >> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and
> > installed
> > >> > it and dependencies to .m2 local repository.
> > >> >
> > >> > I have added this plugin in the pom as follows:
> > >> >
> > >> > <build>
> > >> > <plugins>
> > >> > <plugin>
> > >> > <groupId> com.totsp.gwt.maven</groupId>
> > >> > <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> > >> > <configuration>
> > >> >
> > >> >
> > >> >
> > >>
> > <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
> > >>
> > >> >
> > >> > <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
> > >> > </googleWebToolkitCompileTarget>
> > >> > <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
> > >> > <sourceDirectories>
> > >> > <param>${basedir}/src/main/java/</param>
> > >> > </sourceDirectories>
> > >> > </configuration>
> > >> > <dependencies>
> > >> > <dependency>
> > >> > <groupId> com.google.gwt</groupId>
> > >> > <artifactId>gwt-dev-windows</artifactId>
> > >> > <version>1.3</version>
> > >> > </dependency>
> > >> > <dependency>
> > >> > <groupId>com.google.gwt</groupId>
> > >> > <artifactId>gwt-user</artifactId>
> > >> > <version>1.3</version>
> > >> > </dependency>
> > >> > </dependencies>
> > >> > </plugin>
> > >> > </plugins>
> > >> > </build>
> > >> > I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath
> > is
> > >> > as follows in the eclipse:
> > >> >
> > >> > <classpath>
> > >> > <classpathentry kind="src" path="src/main/java"/>
> > >> > <classpathentry kind="src" path="src/main/resources"/>
> > >> > <classpathentry kind="src" path="src/test/java"
> > >> > output="target/test-classes"/>
> > >> > <classpathentry kind="output" path="target/classes"/>
> > >> > <classpathentry kind="con"
> > >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > >> > </classpath>
> > >> >
> > >> > When I try to run it as gwt project it cannot find
> > >> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to
> > set
> > >> > directory structure. Currently I have orginized directory structure
> > as
> > >> > maven 2 directory structure. Hello.gwt.xml is located at:
> > >> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
> > >> >
> > >> > Did anyone use maven 2 to compile and deploy a gwt project? If you
> > >> > someone can provide more information or sample on this I 'd really
> > >> > appreceate it. I couldn't find much information on the web about
> > this.
> > >> >
> > >> > Many Thanks,
> > >> >
> > >> > Maruf
> > >> >
> > >> >
> > >> >
> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> >
> > >> >
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
Re: gwt maven 2
Posted by Iulian Costan <iu...@gmail.com>.
On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
>
> Thank you Julian,
> I have one more quetsion: How do you orginize directory structure? as
> maven 2 directory structure or you leave it as gwt directory structure
> that gwt project creaton tool is creating?
i have maven2 structure, src/{main,test}/{java,webapp,etc}.
by default plugin generates output to to target/gwt/www/${className},
adding this you'll get webapp packed and ready to deploy
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webResources>
<resource>
<directory>
${project.build.directory
}/gwt/www/${className}
</directory>
</resource>
</webResources>
</configuration>
</plugin>
...
/iulian
Many Thanks,
> Maruf
>
> Iulian Costan wrote:
> > hey buddy, the following works for me like a charm, using
> > gwt-maven-plugin (
> > http://codehaus.org/~shinobu/gwt-maven-plugin/index.html)
> > ...
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>gwt-maven-plugin</artifactId>
> > <configuration>
> > <className>${className}</className>
> > </configuration>
> > <executions>
> > <execution>
> > <id>gwt-compile</id>
> > <phase>compile</phase>
> > <goals>
> > <goal>compile</goal>
> > </goals>
> > </execution>
> > </executions>
> > <dependencies>
> > <dependency>
> > <groupId>gwt-widgets</groupId>
> > <artifactId>gwt-widgets</artifactId>
> > <version>0.1.2</version>
> > </dependency>
> > </dependencies>
> > </plugin>
> > ...
> > where the ${classname} is your module's entry point.
> > all you have to do is to checkout, compile and install the plugin.
> >
> > enjoy!
> >
> > /iulian
> >
> > On 1/12/07, Neeraj Bisht <ne...@daffodildb.com> wrote:
> >>
> >> i think you have not included the .xml file the jar or war project
> >>
> >> use tag < include>*.xml </include>
> >>
> >> in your pom
> >>
> >>
> >> By the way maven 1.0.2 plugin is quite god and powerfull (we
> are using
> >> gwt
> >> plugin in maven 1.0.2
> >>
> >> Regards
> >> Neeraj
> >>
> >>
> >> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
> >> >
> >> > I have a gwt project and I am trying to buil dit with maven 2. I
> >> checked
> >> > out maven-googlewebtoolkit2-plugin from
> >> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and
> installed
> >> > it and dependencies to .m2 local repository.
> >> >
> >> > I have added this plugin in the pom as follows:
> >> >
> >> > <build>
> >> > <plugins>
> >> > <plugin>
> >> > <groupId>com.totsp.gwt.maven</groupId>
> >> > <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> >> > <configuration>
> >> >
> >> >
> >> >
> >>
> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
> >>
> >> >
> >> > <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
> >> > </googleWebToolkitCompileTarget>
> >> > <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
> >> > <sourceDirectories>
> >> > <param>${basedir}/src/main/java/</param>
> >> > </sourceDirectories>
> >> > </configuration>
> >> > <dependencies>
> >> > <dependency>
> >> > <groupId>com.google.gwt</groupId>
> >> > <artifactId>gwt-dev-windows</artifactId>
> >> > <version>1.3</version>
> >> > </dependency>
> >> > <dependency>
> >> > <groupId>com.google.gwt</groupId>
> >> > <artifactId>gwt-user</artifactId>
> >> > <version>1.3</version>
> >> > </dependency>
> >> > </dependencies>
> >> > </plugin>
> >> > </plugins>
> >> > </build>
> >> > I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath
> is
> >> > as follows in the eclipse:
> >> >
> >> > <classpath>
> >> > <classpathentry kind="src" path="src/main/java"/>
> >> > <classpathentry kind="src" path="src/main/resources"/>
> >> > <classpathentry kind="src" path="src/test/java"
> >> > output="target/test-classes"/>
> >> > <classpathentry kind="output" path="target/classes"/>
> >> > <classpathentry kind="con"
> >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> >> > </classpath>
> >> >
> >> > When I try to run it as gwt project it cannot find
> >> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to
> set
> >> > directory structure. Currently I have orginized directory structure
> as
> >> > maven 2 directory structure. Hello.gwt.xml is located at:
> >> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
> >> >
> >> > Did anyone use maven 2 to compile and deploy a gwt project? If you
> >> > someone can provide more information or sample on this I 'd really
> >> > appreceate it. I couldn't find much information on the web about
> this.
> >> >
> >> > Many Thanks,
> >> >
> >> > Maruf
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: gwt maven 2
Posted by Maruf Aytekin <aa...@gmail.com>.
Thank you Julian,
I have one more quetsion: How do you orginize directory structure? as
maven 2 directory structure or you leave it as gwt directory structure
that gwt project creaton tool is creating?
Many Thanks,
Maruf
Iulian Costan wrote:
> hey buddy, the following works for me like a charm, using
> gwt-maven-plugin (
> http://codehaus.org/~shinobu/gwt-maven-plugin/index.html)
> ...
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>gwt-maven-plugin</artifactId>
> <configuration>
> <className>${className}</className>
> </configuration>
> <executions>
> <execution>
> <id>gwt-compile</id>
> <phase>compile</phase>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>gwt-widgets</groupId>
> <artifactId>gwt-widgets</artifactId>
> <version>0.1.2</version>
> </dependency>
> </dependencies>
> </plugin>
> ...
> where the ${classname} is your module's entry point.
> all you have to do is to checkout, compile and install the plugin.
>
> enjoy!
>
> /iulian
>
> On 1/12/07, Neeraj Bisht <ne...@daffodildb.com> wrote:
>>
>> i think you have not included the .xml file the jar or war project
>>
>> use tag < include>*.xml </include>
>>
>> in your pom
>>
>>
>> By the way maven 1.0.2 plugin is quite god and powerfull (we are using
>> gwt
>> plugin in maven 1.0.2
>>
>> Regards
>> Neeraj
>>
>>
>> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
>> >
>> > I have a gwt project and I am trying to buil dit with maven 2. I
>> checked
>> > out maven-googlewebtoolkit2-plugin from
>> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed
>> > it and dependencies to .m2 local repository.
>> >
>> > I have added this plugin in the pom as follows:
>> >
>> > <build>
>> > <plugins>
>> > <plugin>
>> > <groupId>com.totsp.gwt.maven</groupId>
>> > <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
>> > <configuration>
>> >
>> >
>> >
>> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
>>
>> >
>> > <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
>> > </googleWebToolkitCompileTarget>
>> > <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
>> > <sourceDirectories>
>> > <param>${basedir}/src/main/java/</param>
>> > </sourceDirectories>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>com.google.gwt</groupId>
>> > <artifactId>gwt-dev-windows</artifactId>
>> > <version>1.3</version>
>> > </dependency>
>> > <dependency>
>> > <groupId>com.google.gwt</groupId>
>> > <artifactId>gwt-user</artifactId>
>> > <version>1.3</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> > </plugins>
>> > </build>
>> > I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is
>> > as follows in the eclipse:
>> >
>> > <classpath>
>> > <classpathentry kind="src" path="src/main/java"/>
>> > <classpathentry kind="src" path="src/main/resources"/>
>> > <classpathentry kind="src" path="src/test/java"
>> > output="target/test-classes"/>
>> > <classpathentry kind="output" path="target/classes"/>
>> > <classpathentry kind="con"
>> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>> > </classpath>
>> >
>> > When I try to run it as gwt project it cannot find
>> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to set
>> > directory structure. Currently I have orginized directory structure as
>> > maven 2 directory structure. Hello.gwt.xml is located at:
>> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
>> >
>> > Did anyone use maven 2 to compile and deploy a gwt project? If you
>> > someone can provide more information or sample on this I 'd really
>> > appreceate it. I couldn't find much information on the web about this.
>> >
>> > Many Thanks,
>> >
>> > Maruf
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: gwt maven 2
Posted by Iulian Costan <iu...@gmail.com>.
hey buddy, the following works for me like a charm, using gwt-maven-plugin (
http://codehaus.org/~shinobu/gwt-maven-plugin/index.html)
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<className>${className}</className>
</configuration>
<executions>
<execution>
<id>gwt-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>gwt-widgets</groupId>
<artifactId>gwt-widgets</artifactId>
<version>0.1.2</version>
</dependency>
</dependencies>
</plugin>
...
where the ${classname} is your module's entry point.
all you have to do is to checkout, compile and install the plugin.
enjoy!
/iulian
On 1/12/07, Neeraj Bisht <ne...@daffodildb.com> wrote:
>
> i think you have not included the .xml file the jar or war project
>
> use tag < include>*.xml </include>
>
> in your pom
>
>
> By the way maven 1.0.2 plugin is quite god and powerfull (we are using
> gwt
> plugin in maven 1.0.2
>
> Regards
> Neeraj
>
>
> On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
> >
> > I have a gwt project and I am trying to buil dit with maven 2. I checked
> > out maven-googlewebtoolkit2-plugin from
> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed
> > it and dependencies to .m2 local repository.
> >
> > I have added this plugin in the pom as follows:
> >
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>com.totsp.gwt.maven</groupId>
> > <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> > <configuration>
> >
> >
> >
> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
> >
> > <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
> > </googleWebToolkitCompileTarget>
> > <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
> > <sourceDirectories>
> > <param>${basedir}/src/main/java/</param>
> > </sourceDirectories>
> > </configuration>
> > <dependencies>
> > <dependency>
> > <groupId>com.google.gwt</groupId>
> > <artifactId>gwt-dev-windows</artifactId>
> > <version>1.3</version>
> > </dependency>
> > <dependency>
> > <groupId>com.google.gwt</groupId>
> > <artifactId>gwt-user</artifactId>
> > <version>1.3</version>
> > </dependency>
> > </dependencies>
> > </plugin>
> > </plugins>
> > </build>
> > I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is
> > as follows in the eclipse:
> >
> > <classpath>
> > <classpathentry kind="src" path="src/main/java"/>
> > <classpathentry kind="src" path="src/main/resources"/>
> > <classpathentry kind="src" path="src/test/java"
> > output="target/test-classes"/>
> > <classpathentry kind="output" path="target/classes"/>
> > <classpathentry kind="con"
> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > </classpath>
> >
> > When I try to run it as gwt project it cannot find
> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to set
> > directory structure. Currently I have orginized directory structure as
> > maven 2 directory structure. Hello.gwt.xml is located at:
> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
> >
> > Did anyone use maven 2 to compile and deploy a gwt project? If you
> > someone can provide more information or sample on this I 'd really
> > appreceate it. I couldn't find much information on the web about this.
> >
> > Many Thanks,
> >
> > Maruf
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
Re: gwt maven 2
Posted by Neeraj Bisht <ne...@daffodildb.com>.
i think you have not included the .xml file the jar or war project
use tag < include>*.xml </include>
in your pom
By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt
plugin in maven 1.0.2
Regards
Neeraj
On 1/12/07, Maruf Aytekin <aa...@gmail.com> wrote:
>
> I have a gwt project and I am trying to buil dit with maven 2. I checked
> out maven-googlewebtoolkit2-plugin from
> |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed
> it and dependencies to .m2 local repository.
>
> I have added this plugin in the pom as follows:
>
> <build>
> <plugins>
> <plugin>
> <groupId>com.totsp.gwt.maven</groupId>
> <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> <configuration>
>
>
> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory>
>
> <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello
> </googleWebToolkitCompileTarget>
> <googleWebToolkitHome>C:\gwt</googleWebToolkitHome>
> <sourceDirectories>
> <param>${basedir}/src/main/java/</param>
> </sourceDirectories>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-dev-windows</artifactId>
> <version>1.3</version>
> </dependency>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-user</artifactId>
> <version>1.3</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> </build>
> I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is
> as follows in the eclipse:
>
> <classpath>
> <classpathentry kind="src" path="src/main/java"/>
> <classpathentry kind="src" path="src/main/resources"/>
> <classpathentry kind="src" path="src/test/java"
> output="target/test-classes"/>
> <classpathentry kind="output" path="target/classes"/>
> <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> </classpath>
>
> When I try to run it as gwt project it cannot find
> "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to set
> directory structure. Currently I have orginized directory structure as
> maven 2 directory structure. Hello.gwt.xml is located at:
> ${basedir}/src/main/java/com/mycompany/myapp/customer/
>
> Did anyone use maven 2 to compile and deploy a gwt project? If you
> someone can provide more information or sample on this I 'd really
> appreceate it. I couldn't find much information on the web about this.
>
> Many Thanks,
>
> Maruf
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>