maven cleanup

This commit is contained in:
Eugen Paraschiv 2018-07-18 17:10:03 +03:00
parent a866bcce9a
commit 4014be8140
1 changed files with 106 additions and 104 deletions

View File

@ -1,116 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 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">
<!-- POM file generated with GWT webAppCreator --> <!-- POM file generated with GWT webAppCreator -->
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>google_web_toolkit</artifactId> <artifactId>google-web-toolkit</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>com.baeldung.Google_web_toolkit</name>
<properties> <dependencyManagement>
<dependencies>
<!-- ensure all GWT deps use the same version (unless overridden) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt</artifactId>
<version>2.8.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Setting maven.compiler.source to something different to 1.8 <dependencies>
needs that you configure the sourceLevel in gwt-maven-plugin since <dependency>
GWT compiler 2.8 requires 1.8 (see gwt-maven-plugin block below) --> <groupId>com.google.gwt</groupId>
<maven.compiler.source>1.8</maven.compiler.source> <artifactId>gwt-servlet</artifactId>
<maven.compiler.target>1.8</maven.compiler.target> <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- Don't let your Mac use a crazy non-standard encoding --> <build>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes"
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> update them in DevMode -->
</properties> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<dependencyManagement> <plugins>
<dependencies>
<!-- ensure all GWT deps use the same version (unless overridden) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt</artifactId>
<version>2.8.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <!-- GWT Maven Plugin -->
<dependency> <plugin>
<groupId>com.google.gwt</groupId> <groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-servlet</artifactId> <artifactId>gwt-maven-plugin</artifactId>
<scope>runtime</scope> <version>1.0-rc-8</version>
</dependency> <executions>
<dependency> <execution>
<groupId>com.google.gwt</groupId> <goals>
<artifactId>gwt-user</artifactId> <goal>compile</goal>
<scope>provided</scope> <goal>test</goal>
</dependency> </goals>
<dependency> </execution>
<groupId>com.google.gwt</groupId> </executions>
<artifactId>gwt-dev</artifactId> <configuration>
<scope>provided</scope> <moduleName>com.baeldung.Google_web_toolkit</moduleName>
</dependency> <moduleShortName>Google_web_toolkit</moduleShortName>
<dependency> <failOnError>true</failOnError>
<groupId>junit</groupId> <!-- GWT compiler 2.8 requires 1.8, hence define sourceLevel here if
<artifactId>junit</artifactId> you use a different source language for java compilation -->
<version>4.11</version> <sourceLevel>1.8</sourceLevel>
<scope>test</scope> <!-- Compiler configuration -->
</dependency> <compilerArgs>
</dependencies> <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
<arg>-compileReport</arg>
<arg>-XcompilerMetrics</arg>
</compilerArgs>
<!-- DevMode configuration -->
<warDir>${project.build.directory}/${project.build.finalName}</warDir>
<classpathScope>compile+runtime</classpathScope>
<!-- URL(s) that should be opened by DevMode (gwt:devmode). -->
<startupUrls>
<startupUrl>Google_web_toolkit.html</startupUrl>
</startupUrls>
</configuration>
</plugin>
<build> <!-- Skip normal test execution, we use gwt:test instead -->
<!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes" update them in DevMode --> <plugin>
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> <artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugins> </plugins>
</build>
<properties>
<!-- GWT Maven Plugin--> <!-- Setting maven.compiler.source to something different to 1.8 needs
<plugin> that you configure the sourceLevel in gwt-maven-plugin since GWT compiler
<groupId>net.ltgt.gwt.maven</groupId> 2.8 requires 1.8 (see gwt-maven-plugin block below) -->
<artifactId>gwt-maven-plugin</artifactId> <maven.compiler.source>1.8</maven.compiler.source>
<version>1.0-rc-8</version> <maven.compiler.target>1.8</maven.compiler.target>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<moduleName>com.baeldung.Google_web_toolkit</moduleName>
<moduleShortName>Google_web_toolkit</moduleShortName>
<failOnError>true</failOnError>
<!-- GWT compiler 2.8 requires 1.8, hence define sourceLevel here if you use
a different source language for java compilation -->
<sourceLevel>1.8</sourceLevel>
<!-- Compiler configuration -->
<compilerArgs>
<!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
<arg>-compileReport</arg>
<arg>-XcompilerMetrics</arg>
</compilerArgs>
<!-- DevMode configuration -->
<warDir>${project.build.directory}/${project.build.finalName}</warDir>
<classpathScope>compile+runtime</classpathScope>
<!-- URL(s) that should be opened by DevMode (gwt:devmode). -->
<startupUrls>
<startupUrl>Google_web_toolkit.html</startupUrl>
</startupUrls>
</configuration>
</plugin>
<!-- Skip normal test execution, we use gwt:test instead --> <!-- Don't let your Mac use a crazy non-standard encoding -->
<plugin> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<artifactId>maven-surefire-plugin</artifactId> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<version>2.17</version> </properties>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>