Ported to GWT project

This commit is contained in:
Francesco Mangiacrapa 2019-10-16 11:05:48 +02:00
parent 760facbca4
commit 5510c1bc9c
1 changed files with 41 additions and 66 deletions

107
pom.xml
View File

@ -14,8 +14,8 @@
<groupId>org.gcube.data-catalogue</groupId>
<artifactId>grsf-common-library</artifactId>
<packaging>jar</packaging>
<version>1.1.0</version>
<description>Common library for GRSF service and management panel.</description>
<version>1.2.0</version>
<description>Common library for GRSF service and management panel</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -55,24 +55,12 @@
</dependencyManagement>
<dependencies>
<!-- <dependency> -->
<!-- <groupId>com.google.gwt</groupId> -->
<!-- <artifactId>gwt-servlet</artifactId> -->
<!-- <version>${gwtVersion}</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.google.gwt</groupId> -->
<!-- <artifactId>gwt-user</artifactId> -->
<!-- <version>${gwtVersion}</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.google.gwt</groupId> -->
<!-- <artifactId>gwt-dev</artifactId> -->
<!-- <version>${gwtVersion}</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
@ -93,8 +81,7 @@
</dependencies>
<build>
<!-- Generate compiled stuff in the folder used for developing mode -->
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/java</directory>
@ -102,6 +89,7 @@
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
@ -110,39 +98,34 @@
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Mojo's Maven Plugin for GWT -->
<!-- <plugin> -->
<!-- <groupId>org.codehaus.mojo</groupId> -->
<!-- <artifactId>gwt-maven-plugin</artifactId> -->
<!-- <version>${gwtVersion}</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <goals> -->
<!-- <goal>compile</goal> -->
<!-- <goal>test</goal> -->
<!-- <goal>generateAsync</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin -->
<!-- documentation at codehaus.org -->
<!-- <configuration> -->
<!-- <runTarget>GRSFCommon.html</runTarget> -->
<!-- <modules> -->
<!-- <module>org.gcube.datacatalogue.common.GRSFCommon</module> -->
<!-- </modules> -->
<!-- </configuration> -->
<!-- </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<configuration>
<descriptors>
<descriptor>${distroDirectory}/descriptor.xml</descriptor>
<descriptor>descriptor.xml</descriptor>
</descriptors>
</configuration>
<executions>
@ -154,32 +137,24 @@
</goals>
</execution>
</executions>
</plugin>
<!-- GWT Maven Plugin - not needed -->
<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<id>copy-profile</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
<!-- <goal>compile</goal> -->
<!-- <goal>test</goal> -->
</goals>
<configuration>
<outputDirectory>target</outputDirectory>
<resources>
<resource>
<directory>${distroDirectory}</directory>
<filtering>true</filtering>
<includes>
<include>profile.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
<configuration>
</configuration>
</plugin>
</plugins>
</build>