383 lines
18 KiB
XML
383 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>e-rights</artifactId>
|
|
<version>5.0.1</version>
|
|
|
|
</parent>
|
|
|
|
<artifactId>e-rights-common</artifactId>
|
|
<version>${e-rights.version}</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>e-RIGHTS - Common</name>
|
|
<description>EEAS' e-RIGHTS - Common</description>
|
|
|
|
<properties>
|
|
<edms-rest-client.version>1.4.0</edms-rest-client.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- ******************* -->
|
|
<!-- * Ananke Starters * -->
|
|
<!-- ******************* -->
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-core-starter-audit-provider-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-core-starter-audit-provider-data-jpa</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-core-starter-audit-provider-service</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-core-starter-locale-provider-api-http</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-core-starter-security-provider-api-http</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Tools -->
|
|
<!--
|
|
The e-dms-connector starter module depends on the connector itself (ananke-tools-e-dms-connector).
|
|
We do not use the e-dms connector, we use the e-dms rest client, but we still use some
|
|
model classes and Enums which are in ananke-tools-e-dms-connector, so we keep this dependency.
|
|
In doing this, we also avoid the need to declare some now unused properties in the YML which are required by the starter.
|
|
-->
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-e-dms-connector</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-hermes-connector</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-security-sentry</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-service-data-jpa</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-state-machine</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-user-management</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-file-management</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.europa.eeas</groupId>
|
|
<artifactId>ananke-tools-starter-web</artifactId>
|
|
</dependency>
|
|
<!-- ***************** -->
|
|
<!-- * Third Parties * -->
|
|
<!-- ***************** -->
|
|
<dependency>
|
|
<groupId>com.oracle</groupId>
|
|
<artifactId>ojdbc6</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
|
|
<!-- Velocity -->
|
|
<!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity-engine-core -->
|
|
<dependency>
|
|
<groupId>org.apache.velocity</groupId>
|
|
<artifactId>velocity-engine-core</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-collections4</artifactId>
|
|
<version>4.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.13.0</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<version>4.5.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured-all</artifactId>
|
|
<version>4.5.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured-common</artifactId>
|
|
<version>4.5.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- eDMS REST Client -->
|
|
<dependency>
|
|
<groupId>eu.eeas</groupId>
|
|
<artifactId>e-dms-rest-client</artifactId>
|
|
<version>${edms-rest-client.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.nimbusds</groupId>
|
|
<artifactId>nimbus-jose-jwt</artifactId>
|
|
<version>8.23</version>
|
|
</dependency>
|
|
<!-- eDMS REST Client END -->
|
|
<dependency>
|
|
<groupId>io.github.resilience4j</groupId>
|
|
<artifactId>resilience4j-spring-boot2</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>jackson-databind-nullable</artifactId>
|
|
<version>0.2.6</version> <!-- or newer -->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.2.22</version> <!-- any 2.2.x with RequiredMode -->
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>5.10.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.junit.vintage</groupId>
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>jakarta.validation</groupId>
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
<artifactId>tomcat-embed-el</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
<version>1.1.0.Final</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M5</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Test.java</include>
|
|
<include>**/*UT.java</include>
|
|
<include>**/*IT.java</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>it.ninjatech</groupId>
|
|
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>e-rights-common</id>
|
|
<goals>
|
|
<goal>generate-api</goal>
|
|
<goal>generate-model</goal>
|
|
</goals>
|
|
<configuration>
|
|
<id>e-rights-common</id>
|
|
<outputFolder>${project.build.directory}/generated-sources</outputFolder>
|
|
<apiPackage>eu.europa.eeas.erights.common.api.http.rest.api.internal</apiPackage>
|
|
<modelPackage>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal</modelPackage>
|
|
<apiSuffix>RestApi</apiSuffix>
|
|
<modelNameSuffix>TransferObject</modelNameSuffix>
|
|
<sourceFiles>
|
|
<param>${urlPrefix}${basedir}/src/main/resources/swagger/internal/e-rights-entities.yml</param>
|
|
<param>${urlPrefix}${basedir}/src/main/resources/swagger/internal/e-rights-common.yml</param>
|
|
<param>${urlPrefix}${basedir}/src/main/resources/swagger/internal/e-rights-allowances.yml</param>
|
|
</sourceFiles>
|
|
<dataTypeMapping>
|
|
<directMap>
|
|
<!-- Primitives -->
|
|
<CurrencyUnit>javax.money.CurrencyUnit</CurrencyUnit>
|
|
<Money>org.javamoney.moneta.Money</Money>
|
|
<!-- e-Rights Common -->
|
|
<MovementFile>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.MovementFileTransferObject</MovementFile>
|
|
<MovementType>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.MovementTypeTransferObject</MovementType>
|
|
<MovementFileState>eu.europa.eeas.erights.common.tools.statemachine.MovementFileState</MovementFileState>
|
|
<DeclarationState>eu.europa.eeas.erights.common.service.model.declaration.DeclarationState</DeclarationState>
|
|
<EntitlementTypeStatus>eu.europa.eeas.erights.common.tools.entitlements.EntitlementTypeStatus</EntitlementTypeStatus>
|
|
<EntitlementTypeCatCode>eu.europa.eeas.erights.common.tools.entitlements.EntitlementTypeCatCode</EntitlementTypeCatCode>
|
|
<EntitlementMaxCatCode>eu.europa.eeas.erights.common.tools.entitlements.EntitlementMaxCatCode</EntitlementMaxCatCode>
|
|
<NotificationTemplateCode>eu.europa.eeas.erights.common.tools.notification.NotificationTemplateCode</NotificationTemplateCode>
|
|
<NotificationStatus>eu.europa.eeas.ananke.tools.edms.connector.service.model.enums.Status</NotificationStatus>
|
|
<FlatRateDuplicator>eu.europa.eeas.erights.common.tools.entitlements.FlatRateDuplicator</FlatRateDuplicator>
|
|
<BudgetLineJob>eu.europa.eeas.erights.common.service.model.BudgetLineJob</BudgetLineJob>
|
|
<RequestState>eu.europa.eeas.erights.common.tools.statemachine.RequestState</RequestState>
|
|
<AdvanceRequestState>eu.europa.eeas.erights.common.tools.statemachine.AdvanceRequestState</AdvanceRequestState>
|
|
<TotalRemRequestState>eu.europa.eeas.erights.common.tools.statemachine.TotalRemRequestState</TotalRemRequestState>
|
|
<ClearingRequestState>eu.europa.eeas.erights.common.tools.statemachine.ClearingRequestState</ClearingRequestState>
|
|
<InstallationState>eu.europa.eeas.erights.common.tools.statemachine.InstallationState</InstallationState>
|
|
<TopUpRequestState>eu.europa.eeas.erights.common.tools.statemachine.TopUpRequestState</TopUpRequestState>
|
|
<ResettlementState>eu.europa.eeas.erights.common.tools.statemachine.ResettlementState</ResettlementState>
|
|
<SupportingDocType>eu.europa.eeas.erights.common.data.jpa.entity.entitlement.request.SupportingDocType</SupportingDocType>
|
|
<TudEligibility>eu.europa.eeas.erights.common.service.model.declaration.TudEligibilityModel</TudEligibility>
|
|
<AppParamType>eu.europa.eeas.erights.common.tools.app.AppParamType</AppParamType>
|
|
<VPerson>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VPersonTransferObject</VPerson>
|
|
|
|
<!-- web services -->
|
|
<DefaultApi>eu.europa.eeas.erights.common.api.http.rest.api.internal.client.DefaultApi</DefaultApi>
|
|
<ApiClient>eu.europa.eeas.erights.common.api.http.rest.api.internal.ApiClient</ApiClient>
|
|
|
|
<!-- Job -->
|
|
<FunctionCode>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.FunctionCodeTransferObject</FunctionCode>
|
|
<StatutoryLinkCode>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.StatutoryLinkCodeTransferObject</StatutoryLinkCode>
|
|
<InstitutionCode>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.InstitutionCodeTransferObject</InstitutionCode>
|
|
<PersonnelType>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.PersonnelTypeTransferObject</PersonnelType>
|
|
|
|
|
|
<!-- Ananke -->
|
|
<AuditableTransferObject>eu.europa.eeas.ananke.core.audit.provider.api.transferobject.AbstractAuditableTransferObject</AuditableTransferObject>
|
|
<TransferObject>eu.europa.eeas.ananke.core.api.transferobject.AbstractTransferObject</TransferObject>
|
|
|
|
<!--e-Rights allowance-->
|
|
<TravelAllowanceState>eu.europa.eeas.erights.common.tools.statemachine.TravelAllowanceState</TravelAllowanceState>
|
|
|
|
</directMap>
|
|
<packages />
|
|
<externalResources />
|
|
</dataTypeMapping>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-versions</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<bannedDependencies>
|
|
<excludes>
|
|
<exclude>org.apache.logging.log4j:*:2.0.0</exclude>
|
|
</excludes>
|
|
<includes>
|
|
<include>org.apache.logging.log4j:*:2.16.0</include>
|
|
</includes>
|
|
</bannedDependencies>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
<version>5.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${basedir}/src/main/resources/swagger/internal/e-rights-sysper.yml</inputSpec>
|
|
<generatorName>java</generatorName>
|
|
<output>${project.build.directory}/generated-sources</output>
|
|
<generateApiTests>false</generateApiTests>
|
|
<generateModelTests>false</generateModelTests>
|
|
<configOptions>
|
|
<apiPackage>eu.europa.eeas.erights.web.client</apiPackage>
|
|
<modelPackage>eu.europa.eeas.erights.web.client.model</modelPackage>
|
|
<dateLibrary>java8-localdatetime</dateLibrary>
|
|
<reactive>true</reactive>
|
|
<java8>true</java8>
|
|
<library>resttemplate</library>
|
|
</configOptions>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|