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