198 lines
5.5 KiB
XML
198 lines
5.5 KiB
XML
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.gcube.service</groupId>
|
|
<artifactId>helloworld</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>Smartgears HelloWorld Service</name>
|
|
<packaging>war</packaging>
|
|
|
|
|
|
<parent>
|
|
<groupId>org.gcube.tools</groupId>
|
|
<artifactId>maven-parent</artifactId>
|
|
<version>1.2.0</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<java.version>11</java.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
|
|
<!-- OPTIONAL. for authorization-control-library -->
|
|
<aspectj-plugin.version>1.14.0</aspectj-plugin.version>
|
|
|
|
|
|
<jacksonVersion>2.15.3</jacksonVersion>
|
|
|
|
</properties>
|
|
|
|
<scm>
|
|
<connection>
|
|
scm:git:https://code-repo.d4science.org/gCubeSystem/hello-world-sg4-service.git</connection>
|
|
<developerConnection>
|
|
scm:git:https://code-repo.d4science.org/gCubeSystem/hello-world-sg4-service.git</developerConnection>
|
|
<url>
|
|
https://code-repo.d4science.org/gCubeSystem/hello-world-sg4-service.git</url>
|
|
</scm>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.gcube.distribution</groupId>
|
|
<artifactId>gcube-smartgears-bom</artifactId>
|
|
<version>3.0.1-SNAPSHOT</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<!--
|
|
Keycloak use a older version of jackson (2.12.3).
|
|
some jackson libraries are imported only by keyclock,
|
|
not by smartgears so it mixed different versions.
|
|
We explicity import its jackson dependency to ovverride the version
|
|
-->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
<version>${jacksonVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.jaxrs</groupId>
|
|
<artifactId>jackson-jaxrs-base</artifactId>
|
|
<version>${jacksonVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.jaxrs</groupId>
|
|
<artifactId>jackson-jaxrs-json-provider</artifactId>
|
|
<version>${jacksonVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
|
<version>${jacksonVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>jakarta.activation</groupId>
|
|
<artifactId>jakarta.activation-api</artifactId>
|
|
<version>2.1.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-admin-client</artifactId>
|
|
<version>21.1.2</version>
|
|
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.jboss.spec.javax.ws.rs</groupId>
|
|
<artifactId>jboss-jaxrs-api_3.0_spec</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
</dependency>
|
|
<!-- smartgears -->
|
|
<dependency>
|
|
<groupId>org.gcube.core</groupId>
|
|
<artifactId>common-smartgears</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.gcube.common</groupId>
|
|
<artifactId>common-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.gcube.common</groupId>
|
|
<artifactId>authorization-control-library</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.gcube.core</groupId>
|
|
<artifactId>common-smartgears-app</artifactId>
|
|
</dependency>
|
|
|
|
<!-- jersey -->
|
|
<dependency>
|
|
<groupId>org.glassfish.jersey.containers</groupId>
|
|
<artifactId>jersey-container-servlet</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<!--
|
|
https://mvnrepository.com/artifact/org.glassfish.jersey.inject/jersey-cdi2-se -->
|
|
<dependency>
|
|
<groupId>org.glassfish.jersey.inject</groupId>
|
|
<artifactId>jersey-cdi2-se</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<!-- add jackson as json provider -->
|
|
<dependency>
|
|
<groupId>org.glassfish.jersey.media</groupId>
|
|
<artifactId>jersey-media-json-jackson</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
|
|
<!-- OPTIONAL generate the war in a different folder, that will be
|
|
mounted on docker
|
|
container -->
|
|
<!-- <plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.3</version>
|
|
<configuration>
|
|
<warName>identity-manager</warName>
|
|
<outputDirectory>tomcat/webapps</outputDirectory>
|
|
</configuration>
|
|
</plugin> -->
|
|
|
|
<!-- OPTIONAL. authorization-control-library: add this plugin if you
|
|
want to use gcube
|
|
authorization control funzionalities -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>aspectj-maven-plugin</artifactId>
|
|
<version>${aspectj-plugin.version}</version>
|
|
<configuration>
|
|
<complianceLevel>11</complianceLevel>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
<aspectLibraries>
|
|
<aspectLibrary>
|
|
<groupId>org.gcube.common</groupId>
|
|
<artifactId>authorization-control-library</artifactId>
|
|
</aspectLibrary>
|
|
</aspectLibraries>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |