I haven't dug into the POM here very carefully, but it looks like
maybe it was an old one that was migrated forward to a newer GWT-Maven
version?  I say that because it has all the "generator" stuff in it
(which no longer works), and it has a few other odd things (using GWT
1.5.0 and not using automatic mode for example).  Check the GWT-Maven
docs and try just a typical POM for for your project (highly recommend
automatic mode too).  That may or may not be related to your issues,
but cleaning it up a bit might help in general?

On Oct 20, 10:33 am, Esteban Robles Luna
<[EMAIL PROTECTED]> wrote:
> That's exactly what I'm wondering to know.
> It seems that .class files in the jar file were compiled with the full
> tree from the pom.xml file.
> It's really rare.
> Any clues?
>
> On Oct 20, 12:26 pm, "Mirko Nasato" <[EMAIL PROTECTED]> wrote:
>
> > Why "src.main.java.com.xxx.maps.client.ui.base.MapView"? It should be
> > "com.xxx.maps.client.ui.base.MapView".
>
> > Cheers
>
> > Mirko
>
> > 2008/10/20 Esteban Robles Luna <[EMAIL PROTECTED]>
>
> > > Hi,
> > > I'm trying to create a component using gwt and maven.
> > > I have the project running and installed on my local repository.
> > > When I reference it from another project I get the following error:
>
> > > The type src.main.java.com.xxx.maps.client.ui.base.MapView cannot be
> > > resolved. It is indirectly referenced from required .class files.
>
> > > src/main/java is one of my source directories.
> > > I try several times to clean install but I guess the problem is in the
> > > pom.xml file.
>
> > > My pom.xml file is the following:
>
> > > <?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";>
> > >   <modelVersion>4.0.0</modelVersion>
> > >   <groupId>com.xxx</groupId>
> > >   <artifactId>gwt-maps</artifactId>
> > >   <packaging>jar</packaging>
> > >   <version>0.1-SNAPSHOT</version>
> > >   <name>gwt-maps</name>
> > >   <url>http://maven.apache.org</url>
>
> > >   <profiles>
> > >      <profile>
> > >         <id>gwt-1.5.0-windows</id>
> > >         <activation>
> > >            <os>
> > >               <family>windows</family>
> > >            </os>
> > >         </activation>
> > >         <properties>
> > >            <google.webtoolkit.home>${env.GWT_HOME}</
> > > google.webtoolkit.home>
> > >         </properties>
> > >         <dependencies>
> > >            <dependency>
> > >               <groupId>com.google.gwt</groupId>
> > >               <artifactId>gwt-dev-windows</artifactId>
> > >               <version>1.5.0</version>
> > >               <scope>system</scope>
> > >               <systemPath>${google.webtoolkit.home}/gwt-dev-
> > > windows.jar</systemPath>
> > >            </dependency>
> > >         </dependencies>
> > >      </profile>
> > >   </profiles>
>
> > >   <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>
>
> > >   <dependencies>
> > >      <dependency>
> > >         <groupId>junit</groupId>
> > >         <artifactId>junit</artifactId>
> > >         <version>3.8.1</version>
> > >         <scope>test</scope>
> > >      </dependency>
> > >      <dependency>
> > >         <groupId>com.google.gwt</groupId>
> > >         <artifactId>gwt-user</artifactId>
> > >         <version>1.5.0</version>
> > >         <scope>provided</scope>
> > >      </dependency>
> > >      <dependency>
> > >         <groupId>com.google.gwt</groupId>
> > >         <artifactId>gwt-servlet</artifactId>
> > >         <version>1.5.0</version>
> > >      </dependency>
> > >   </dependencies>
>
> > >   <build>
> > >                <finalName>gwt-maps</finalName>
> > >                <sourceDirectory>src/main/java</sourceDirectory>
> > >                <testSourceDirectory>src/test/java</testSourceDirectory>
> > >                <resources>
> > >            <resource>
> > >                <directory>src/main/resources</directory>
> > >            </resource>
> > >            <resource>
> > >                <directory>src/main/java</directory>
> > >            </resource>
> > >        </resources>
> > >      <plugins>
> > >         <plugin>
> > >            <groupId>org.apache.maven.plugins</groupId>
> > >            <artifactId>maven-compiler-plugin</artifactId>
> > >            <version>2.0</version>
> > >            <configuration>
> > >               <source>1.6</source>
> > >               <target>1.6</target>
> > >            </configuration>
> > >         </plugin>
> > >         <plugin>
> > >            <groupId>com.totsp.gwt</groupId>
> > >            <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> > >            <version>2.0-beta24</version>
> > >            <configuration>
> > >               <logLevel>INFO</logLevel>
> > >               <style>DETAILED</style>
> > >               <runTarget>com.xxx.maps.Maps/maps.html</runTarget>
> > >                <compileTargets>
> > >                  <value>com.xxx.maps.Maps</value>
> > >               </compileTargets>
> > >               <overwriteGeneratedClasses>true</
> > > overwriteGeneratedClasses>
> > >               <generatorDestinationPackage>com.xxx.maps.client</
> > > generatorDestinationPackage>
> > >               <generateGettersAndSetters>true</
> > > generateGettersAndSetters>
> > >               <extraJvmArgs>-Xmx256M -Xms64M</extraJvmArgs>
> > >            </configuration>
> > >            <executions>
> > >               <execution>
> > >                  <goals>
> > >                    <goal>compile</goal>
> > >                  </goals>
> > >               </execution>
> > >            </executions>
> > >         </plugin>
> > >      </plugins>
> > >   </build>
> > > </project>
>
> > > Any help is really appreciated.
> > > Regards,
> > > Esteban
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to