To check that out i added the source plugin. Then ran mvn
source:jar. The jar did contain the gwt module and entry point class
as specified in the file.
It has always worked fine on my desktop and still does. My laptop
however is having this problem and it just started about three weeks
ago. The project is the same from svn as what i have on my desktop.
So, it must be a something else.
Another thing i noticed was when i run mvn gwt:compile on my laptop
(which is were i have the problem) I get the following error:
[INFO] Trace
java.lang.IllegalStateException: basedir /home/cworley/projects/core/
demo-sales-gwt/src/main/resources does not exist
at org.codehaus.plexus.util.DirectoryScanner.scan
(DirectoryScanner.java:550)
So, I add the directory to the project i have checked out on my
laptop. Then i get the following:
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: GWTCompiler
failed
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:583)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: GWTCompiler
failed
at org.codehaus.mojo.gwt.CompileMojo.compile(CompileMojo.java:136)
I wonder what it could be outside of my pom.xml that could be the
problem? Again the same project compiles fine on my desktop.
i use gwt 1.5.3, maven 2.0.9, this is the same on my desktop. I'm at
a loss.
----------------------- pom.xml
--------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>foo</groupId>
<artifactId>foo-bar</artifactId>
<packaging>war</packaging>
<name>foo</name>
<version>0.0.1-SNAPSHOT</version>
<description>Sales Demo Application Based On Core Framework</
description>
<repositories>
<repository>
<id>gwt-maven</id>
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>gwt-maven</id>
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
url>
</pluginRepository>
<!--
<pluginRepository>
<id>internal</id>
<url>http://build-1.rack.sourcelabs.com/repos/internal/</url>
</pluginRepository>
-->
</pluginRepositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>1.5.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>1.5.3</version>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>com.googlecode.gwtx</groupId>
<artifactId>GWTx</artifactId>
<version>20070605</version>
</dependency>
-->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.6-beta-1</version>
</dependency>
<!--
<dependency>
<groupId>core.data</groupId>
<artifactId>core-data-model</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
-->
<dependency>
<groupId>demoSalesService</groupId>
<artifactId>demo-sales-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!--
<dependency>
<groupId>net.sf.hibernate4gwt</groupId>
<artifactId>hibernate4gwt</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.sf.beanlib</groupId>
<artifactId>beanlib-hibernate</artifactId>
<version>3.2.1</version>
</dependency>
-->
</dependencies>
<build>
<finalName>demo-sales</finalName>
<plugins>
<!-- Source -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.3</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- compiler -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<!-- maven gwt -->
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</
artifactId>
<version>2.0-beta26</version>
<configuration>
<logLevel>INFO</logLevel>
<!-- style: PRETTY, DETAILED, OBF -->
<style>DETAILED</style>
<runTarget>com.foobar.web.DemoModule/
DemoModule.jsp</runTarget>
<compileTargets>
<param>com.foobar.web.DemoUI</param>
</compileTargets>
</configuration>
<executions>
<execution>
<goals>
<!--
<goal>generateClientBeans</goal>
-->
<goal>mergewebxml</goal>
<goal>compile</goal>
<!-- goal>testGwt</goal -->
</goals>
</execution>
</executions>
</plugin>
<!-- maven war -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webXml>target/web.xml</webXml>
</configuration>
</plugin>
<!-- groovy -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>1.0-rc-2</version>
<configuration>
</configuration>
</plugin>
</plugins>
</build>
</project>
--------------------------------------------------------------------------------------------------
-chris worley
On Jan 19, 3:57 pm, Charlie Collins <[email protected]> wrote:
> I use multiple modules often, and usually only one has an entry point,
> works fine for me. I use GWT inheritance in my modules (saying
> "inherits from" is not enough info). At any rate, GWT-Maven just
> hands off the "compileTargets" to the GWT compiler itself, it doesn't
> do the work on it's own. That error message means, the GWT compiler
> can't find the entry point for the module you are specifying using the
> current classpath. Post your POM and module, and any other info if
> you still need help. GWT-Maven does not (should not anyway) just find
> the next "available" module, it uses the configuration specified (it's
> possible though, depending on how you are doing inheritance, that one
> module might lead to another).
>
> On Jan 18, 7:27 pm, cworley420 <[email protected]> wrote:
>
> > Recently I had to modify my pom file to use a different version of
> > maven-gwt than I previously was because it was not longer available.
> > The current version I am using is "2.0-beta26". Everything worked
> > fine for a few days and then maven started ignoring the compile target
> > I specified in the xml file. It appears to pick up the first one it
> > find on the file system. If i rename that one, it goes to the next
> > one.
>
> > Basically com.foobar.DemoModule is contains the entry point and is the
> > compile target i want compiled. DemoModeul inherits from DemoData
> > which is the data model and has not entry points.
>
> > Does anyone know why maven-gwt is ignoring the compileTarget is
> > specify and attempt to find one to compile?
>
> > [INFO] [gwt:compile]
> > [INFO] Compile GWT module com.foobar.DemoData
> > [ERROR] Module has no entry points defined
> > [ERROR] Build failed
>
> > Here is my configuration:
>
> > -----------------------------------------------------------------------
>
> > <repositories>
> > <repository>
> > <id>gwt-maven</id>
> > <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
> > url>
> > </repository>
> > </repositories>
>
> > <pluginRepositories>
> > <pluginRepository>
> > <id>gwt-maven</id>
> > <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
> > url>
> > </pluginRepository>
> > </pluginRepositories>
>
> > ...
> > ...
> > ...
>
> > <plugin>
> > <groupId>com.totsp.gwt</groupId>
> > <artifactId>maven-googlewebtoolkit2-plugin</
> > artifactId>
> > <version>2.0-beta26</version>
> > <configuration>
> > <logLevel>INFO</logLevel>
> > <!-- style: PRETTY, DETAILED, OBF -->
> > <style>DETAILED</style>
> > <runTarget>com.foobar.DemoModule/DemoModule.jsp</
> > runTarget>
> > <compileTargets>
> > <param>com.foobar.DemoModule</param>
> > </compileTargets>
> > </configuration>
> > <executions>
> > <execution>
> > <goals>
> > <!--
> > <goal>generateClientBeans</goal>
> > -->
> > <goal>mergewebxml</goal>
> > <goal>compile</goal>
> > <!-- goal>testGwt</goal -->
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
>
> > -----------------------------------------------------------------------
>
> > -chris worley
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"gwt-maven" 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/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---