I want to use a different web.xml while running the hosted mode, but
seems it always look the one in web-inf dir.

I have attached my pom file.

Any one had this problem before ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<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";>

	<parent>
		<artifactId>webgateway</artifactId>
		<groupId>loadlimiter</groupId>
		<version>2.5.0-SNAPSHOT</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>

	<artifactId>webadmin</artifactId>
	<name>webadmin WAR</name>
	<description>webadmin WAR</description>

	<packaging>war</packaging>

	<properties>
		<gwtModuleName>za.co.eon.webadmin.WebAdmin</gwtModuleName>
		<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
	</properties>

	<dependencies>
		<dependency>
			<artifactId>webcommons</artifactId>
			<groupId>${project.groupId}</groupId>
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>com.google.gwt.google-apis</groupId>
			<artifactId>gwt-maps</artifactId>
			<version>1.1.1</version>
		</dependency>

	</dependencies>

	<build>
		<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
		<plugins>
			<!--  configure the GWT-Maven plugin -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<version>2.3.0</version>
				<configuration>
					<logLevel>INFO</logLevel>
					<style>DETAILED</style>
					<noServer>false</noServer>
					<extraJvmArgs><![CDATA[ -Xmx512m -Dza.co.eon.resource.prop="src/test/resources/testConfig.prop" ]]></extraJvmArgs>
					<!--
						<i18nConstantsNames> <value>
						za.co.eon.webadmin.client.AdminMessages </value>
						</i18nConstantsNames>
					-->
					<i18nMessagesBundle>
						za.co.eon.webadmin.client.AdminMessages
					</i18nMessagesBundle>

					<!--
						this parameter is VERY important with automatic mode - has to
						match the version in your declared deps
					-->
					<!--
						if this does not match (default if left out is 1.5.2) you will
						have mysterious errors
					-->
					<generateDirectory>${basedir}/src/main/java</generateDirectory>
					<runTarget>${gwtModuleName}/test.html</runTarget>
					<webXml>${basedir}/src/test/resources/web.xml</webXml>
					<hostedWebapp>${webappDirectory}</hostedWebapp>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>i18n</goal>
							<goal>test</goal>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>

Reply via email to