javax version

This commit is contained in:
Alfredo Oliviero 2025-11-13 11:02:35 +01:00
parent 9ec6db08d8
commit d99cad6abf
2 changed files with 175 additions and 1 deletions

View File

@ -7,4 +7,5 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Helps on basic retrieve of the AUTHN and AUTHZ form the IAM, hiding the use of the underling implementation. With dome utility helper functions for get the info from the tokens.
- It already support for the use of the custom Keycloak's D4S mappers that maps/shrink the `aud` (and optionally also the resource access) to the value requested via dynamic scope (by default) and `X-D4Science-Context` HTTP header (can be only globally enabled via static flag) [#24701] [#23356] [#28084].
- Helps to obtain the token for the user and related tests [#28084]
- Helps to parse, verify and get D4Science related info from an OIDC access token (e.g. from bearer authorization header) [#28351]
- Helps to parse, verify and get D4Science related info from an OIDC access token (e.g. from bearer authorization header) [#28351]
- javax version

173
pom.javax.xml Normal file
View File

@ -0,0 +1,173 @@
<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>
<parent>
<artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId>
<version>1.3.0-SNAPSHOT</version>
<relativePath />
</parent>
<groupId>org.gcube.common</groupId>
<artifactId>d4science-iam-client-javax</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scm>
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</developerConnection>
<url>https://code-repo.d4science.org/gCubeSystem/${project.artifactId}</url>
</scm>
<developers>
<developer>
<name>Mauro Mugnaini</name>
<email>mauro.mugnaini@nubisware.com</email>
<organization>CNR Pisa, Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"</organization>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>
<properties>
<!-- Java -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<repo.name>gcube-javax</repo.name>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom-javax</artifactId>
<version>4.0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>keycloak-client-javax</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-sources</id>
<phase>initialize</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/javax</outputDirectory>
<resources>
<resource>
<directory>src/main/java</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>${project.build.directory}</basedir>
<includes>
<include>generated-sources/javax/**/*.java</include>
</includes>
<replacements>
<replacement>
<token>jakarta.xml.bind</token>
<value>javax.xml.bind</value>
</replacement>
<replacement>
<token>jakarta.xml.ws</token>
<value>javax.xml.ws</value>
</replacement>
<replacement>
<token>jakarta.xml.soap</token>
<value>javax.xml.soap</value>
</replacement>
<replacement>
<token>jakarta.ws.rs</token>
<value>javax.ws.rs</value>
</replacement>
<replacement>
<token>jakarta.jws</token>
<value>javax.jws</value>
</replacement>
</replacements>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compileSourceRoots>
<compileSourceRoot>${project.build.directory}/generated-sources/javax</compileSourceRoot>
</compileSourceRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>