1. That's a really old version of GWT-Maven.  2.0-beta26 is the
current version.
Also, you might want to use the newer "automatic" configuration - see
the examples here:
http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/examples.html.

2. You are including the "mergewebxml" goal, do you have a source
web.xml file?  (src/main/webapp/WEB-INF/web.xml)

On Jan 6, 4:43 am, "[email protected]"
<[email protected]> wrote:
> I have got problem with build WAR file. I get error because "Unable to
> merge web.xml", and I don't know why I get this "[INFO] No sources to
> compile"?
>
> I get this message:
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Unnamed - DendrytProject:DendrytProject:war:0.0.1-
> SNAPSHOT
> [INFO]
> [INFO] Id: DendrytProject:DendrytProject:war:0.0.1-SNAPSHOT
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [gwt:mergewebxml]
> [ERROR]
>
> The following mojo encountered an error while executing:
> Group-Id: com.totsp.gwt
> Artifact-Id: maven-googlewebtoolkit2-plugin
> Version: 2.0-beta5
> Mojo: mergewebxml
> brought in via: POM
>
> While building project:
> Group-Id: DendrytProject
> Artifact-Id: DendrytProject
> Version: 0.0.1-SNAPSHOT
> From file: C:\eclipse-jee-ganymede-SR1-win32\workspace\DendrytProject
> \pom.xml
> Reason: Unable to merge web.xml
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run with the -e flag
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 06 09:38:44 CET 2009
> [INFO] Final Memory: 2M/9M
> [INFO]
> ------------------------------------------------------------------------
>
> This is my pom.xml file:
>
> <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.0http://maven.apache.org/maven-v4_0_0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>DendrytProject</groupId>
>   <artifactId>DendrytProject</artifactId>
>   <packaging>war</packaging>
>   <version>0.0.1-SNAPSHOT</version>
>   <build>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.apache.maven.plugins</groupId>
>                                 <artifactId>maven-compiler-plugin</artifactId>
>                                 <version>2.0</version>
>                         </plugin>
>                         <plugin>
>                                 <groupId>org.apache.maven.plugins</groupId>
>                                 <artifactId>maven-war-plugin</artifactId>
>                                 <version>2.0</version>
>
>                                 <configuration>
>                                         <webXml>target/web.xml</webXml>
>                                 </configuration>
>                         </plugin>
>                         <plugin>
>                                 <groupId>com.totsp.gwt</groupId>
>                                 
> <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
>                                 <version>2.0-beta5</version>
>                                 <extensions>true</extensions>
>
>                                 <configuration>
>                                         <runTarget>
>                                                 
> com.dendryt.software.Dendryt/Dendryt.html
>                                 </runTarget>
>                                 <compileTargets>
>                                 <param>com.dendryt.software.Dendryt</param>
>                         </compileTargets>
>
>                                         
> <gwtHome>c:\eclipse-jee-ganymede-SR1-win32\GWT\gwt-
> windows-1.5.2\</gwtHome>
>                                 </configuration>
>
>                                 <executions>
>                                         <execution>
>                                                 <goals>
>                                                         
> <goal>mergewebxml</goal>
>                                                         <goal>compile</goal>
>                                                 </goals>
>                                         </execution>
>                                 </executions>
>
>                         </plugin>
>
>                 </plugins>
>
>         </build>
>         <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>4.1</version>
>                         <scope>test</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.googlecode.gwtx</groupId>
>                         <artifactId>GWTx</artifactId>
>                         <version>20070605</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.google.gwt</groupId>
>                         <artifactId>gwt-user</artifactId>
>                         <version>1.5.2</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.google.gwt</groupId>
>                         <artifactId>gwt-servlet</artifactId>
>                         <version>1.5.2</version>
>                         <scope>runtime</scope>
>                 </dependency>
>         </dependencies>
> </project>
--~--~---------~--~----~------------~-------~--~----~
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