Skip to content

Instantly share code, notes, and snippets.

@aliakhtar

aliakhtar/.xml Secret

Created July 27, 2015 15:23
Show Gist options
  • Save aliakhtar/1f1b51d04a3465d27bb4 to your computer and use it in GitHub Desktop.
Save aliakhtar/1f1b51d04a3465d27bb4 to your computer and use it in GitHub Desktop.
<pluginManagement>
<plugins>
<!-- We specify the Maven compiler plugin as we need to set it to Java 1.8 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.7.0</version>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see
gwt-maven-plugin documentation at codehaus.org -->
<configuration>
<runTarget></runTarget>
<failOnError>true</failOnError>
<enableClosureCompiler>true</enableClosureCompiler>
<compileReport>false</compileReport>
<style>OBF</style>
<!--<style>DETAILED</style>-->
<launcherDir>${project.basedir}/src/main/webapp</launcherDir>
<webappDirectory>${project.build.directory}/classes/web</webappDirectory>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment