erights/e-rights-front-office/pom.xml

207 lines
10 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>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>e-rights-front-office</artifactId>
<version>${e-rights.version}</version>
<packaging>war</packaging>
<name>e-RIGHTS</name>
<description>EEAS' e-RIGHTS</description>
<dependencies>
<dependency>
<groupId>eu.europa.eeas</groupId>
<artifactId>e-rights-common</artifactId>
<version>${e-rights.version}</version>
</dependency>
<!-- ***************** -->
<!-- * Third Parties * -->
<!-- ***************** -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>eu.europa.ec.digit.iam.ecas.client</groupId>
<artifactId>ecas-tomcat-8.0</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.crypto.tink</groupId>
<artifactId>tink</artifactId>
<version>1.6.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>e-rights-front-office</id>
</execution>
</executions>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>it.ninjatech</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<executions>
<execution>
<id>e-rights-front-office</id>
<goals>
<goal>generate-api</goal>
<goal>generate-model</goal>
</goals>
<configuration>
<id>e-rights-front-office</id>
<outputFolder>${project.build.directory}/generated-sources</outputFolder>
<apiPackage>eu.europa.eeas.erights.frontoffice.api.http.rest.api.internal</apiPackage>
<modelPackage>eu.europa.eeas.erights.frontoffice.api.http.rest.transferobject.internal</modelPackage>
<apiSuffix>RestApi</apiSuffix>
<modelNameSuffix>TransferObject</modelNameSuffix>
<sourceFiles>
<param>${urlPrefix}${basedir}/src/main/resources/swagger/internal/e-rights-front-office.yml</param>
</sourceFiles>
<dataTypeMapping>
<directMap>
<!-- Primitives -->
<CurrencyUnit>javax.money.CurrencyUnit</CurrencyUnit>
<Money>org.javamoney.moneta.Money</Money>
<!-- Ananke -->
<AuditableTransferObject>eu.europa.eeas.ananke.core.audit.provider.api.transferobject.AbstractAuditableTransferObject</AuditableTransferObject>
<TransferObject>eu.europa.eeas.ananke.core.api.transferobject.AbstractTransferObject</TransferObject>
<NotificationStatus>eu.europa.eeas.ananke.tools.edms.connector.service.model.enums.Status</NotificationStatus>
<!-- e-Rights Common -->
<MovementFileState>eu.europa.eeas.erights.common.tools.statemachine.MovementFileState</MovementFileState>
<MovementFile>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.MovementFileTransferObject</MovementFile>
<MovementContext>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.MovementContextTransferObject</MovementContext>
<VJob>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VJobTransferObject</VJob>
<VPerson>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VPersonTransferObject</VPerson>
<City>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.CityTransferObject</City>
<Country>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.CountryTransferObject</Country>
<VReportMovementFile>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VReportMovementFileTransferObject</VReportMovementFile>
<VAllowancesTransferObject>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VAllowancesTransferObject</VAllowancesTransferObject>
<EntitlementTypeStatus>eu.europa.eeas.erights.common.tools.entitlements.EntitlementTypeStatus</EntitlementTypeStatus>
<EntitlementTypeCatCode>eu.europa.eeas.erights.common.tools.entitlements.EntitlementTypeCatCode</EntitlementTypeCatCode>
<FlatRateDuplicator>eu.europa.eeas.erights.common.tools.entitlements.FlatRateDuplicator</FlatRateDuplicator>
<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>
<VReportPostingAllowance>eu.europa.eeas.erights.common.api.http.rest.transferobject.internal.VReportPostingAllowanceTransferObject</VReportPostingAllowance>
</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.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.10</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>add-webapp-as-resource</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/webapp</directory><!-- to fix Ananke NPE which expects to find the web.xml -->
<filtering>true</filtering>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>