Greetings!

I'm having a problem using gwt-maven-plugin. The project compiles fine, but I cannot run it as a web application, I can only run it by doing run as->maven build...->gwt:run, in which case I cannot debug the code.

I've attached my pom.xml, it may not look best, because I already did some trial and error.

Cheers Luka
<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/xsd/maven-4.0.0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>ParametersEditor</groupId>
	<artifactId>ParametersEditor</artifactId>
	<version>1.0-SNAPSHOT</version>
	<name>ParametersEditor</name>
	<packaging>war</packaging>
	
	<!-- <url>https://estat.cosylab.com/</url> -->
	
	<properties>
		<!-- encoding used to copy resources and generate reports -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<!-- directory under target where the webapp is assembled -->
		<webapp.dir>ParametersEditor-1.0-SNAPSHOT</webapp.dir>

		<!-- convenience to define GWT version in one place -->
		<gwt.version>2.3.0</gwt.version>

		<!--  tell the compiler we can use 1.6 -->
		<maven.compiler.source>1.6</maven.compiler.source>
		<maven.compiler.target>1.6</maven.compiler.target>
	</properties>
	
	<!--Sometimes maven doesn't pick up the plugins from the repositories defined above. Maybe I am missing something-->
    <!--but in order to avoid surprises also defining the JBoss repo as plugin repo.-->
    <pluginRepositories>
      <pluginRepository>
			<id>JBOSS</id>
			<name>JBoss Repository</name>
			<url>https://repository.jboss.org/nexus/content/repositories/public</url>
		</pluginRepository>
		<pluginRepository>
  			<releases>
    			<enabled>true</enabled>
  			</releases>
  			<snapshots>
    			<enabled>false</enabled>
  			</snapshots>
  			<id>gwt-dev-release</id>
  			<url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/</url>
		</pluginRepository>
    </pluginRepositories>
	
	<dependencies>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-servlet</artifactId>
			<version>${gwt.version}</version>
			<!--scope>runtime</scope-->
		</dependency>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<version>${gwt.version}</version>
			<scope>provided</scope>
		</dependency>
		<!-- gwt event service (comet) -->
		<dependency>
			<groupId>com.google.code.gwteventservice</groupId>
			<artifactId>gwteventservice</artifactId>
			<version>1.1.1</version>
		</dependency>
		
		<!-- <dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-dev</artifactId>
			<version>${gwt.version}</version>
		</dependency>
		 -->
		
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-core</artifactId>
			<version>3.5.5-Final</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
			<exclusions>
				<exclusion>
					<artifactId>slf4j-api</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-annotations</artifactId>
			<version>3.5.5-Final</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
		</dependency>
         <dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
			<version>4.1.0.Final</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
		</dependency>
	
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.5.11</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.5.11</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
		</dependency>
		
		<!-- Database -->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.12</version>
			<type>jar</type>
			<!--scope>runtime</scope-->
		</dependency>
	</dependencies>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<version>2.3.0-1</version>
				
				<configuration>
					<webXml>${project.build.directory}/${webapp.dir}/WEB-INF/web.xml</webXml>
					<runTarget>ParametersEditor.html</runTarget>
					<hostedWebapp>${project.build.directory}/${webapp.dir}</hostedWebapp>
					<soyc>false</soyc>
				</configuration>
				
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		
		
			<!-- <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.0.2</version>
				<configuration>
					<warName>ParametersEditor</warName> -->
					<!-- <webappDirectory>.</webappDirectory> -->
			<!-- 	</configuration>
			</plugin> -->
		</plugins>
	</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to