Reporting/pom.xml
2024-09-09 22:24:02 +02:00

501 lines
22 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.capgemini.reports</groupId>
<artifactId>kurt</artifactId>
<packaging>pom</packaging>
<version>1.32.9</version>
<name>Kurt</name>
<description>Application de reporting</description>
<modules>
<module>deployment-tool</module>
<module>core-ear</module>
<module>kurt-ejb</module>
<module>kurt-web</module>
<module>kurt-utility</module>
<module>jasper</module>
<module>teamcenter</module>
<module>distribution</module>
</modules>
<properties>
<mrm.location>http://mrm.apps2.capgemini.com</mrm.location>
<releases.repository.name>${capgemini.cip.project.id}-release-local</releases.repository.name>
<capgemini.cip.project.id>AD_DFP_PV_CDS</capgemini.cip.project.id>
<!-- Encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->
<version.jboss.bom>1.0.4.Final</version.jboss.bom>
<!-- JBoss dependency versions -->
<version.jboss.maven.plugin>7.9.Final</version.jboss.maven.plugin>
<!-- other plugin versions -->
<version.war.plugin>2.1.1</version.war.plugin>
<!-- maven-compiler-plugin -->
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
<release.id>${project.artifactId}_v${project.version}</release.id>
<sonar.skippedModules>distribution</sonar.skippedModules>
<scm.url>https://coconet-svn-fr-01.capgemini.com/svn/repos/pv-reports</scm.url>
<scm.branch>trunk</scm.branch>
</properties>
<scm>
<developerConnection>scm:svn:https://coconet-svn-fr-01.capgemini.com/svn/repos/pv-reports/trunk/kurt
</developerConnection>
<connection>scm:svn:https://coconet-svn-fr-01.capgemini.com/svn/repos/pv-reports/trunk/kurt</connection>
</scm>
<ciManagement>
<system>jenkins</system>
<url>https://pvscnecma.pl.s2-eu.capgemini.com/jenkins</url>
</ciManagement>
<distributionManagement>
<snapshotRepository>
<id>nexus</id>
<name>Internal Snapshot Releases</name>
<url>http://nexus3-core:8081/nexus3/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus</id>
<name>Internal Releases</name>
<url>http://nexus3-core:8081/nexus3/repository/maven-releases/</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-parent</artifactId>
<version>7.1.1.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.7</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.10</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20140107</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<!-- Only ONE of the following profiles may be active: - development (default)
- validation (active when property 'release' has value 'validation') - release
(active when property 'release' has value 'release') - sonar (active when
property 'release' has value 'snecma') -->
<profile>
<id>development</id>
<properties>
<skipTests>true</skipTests>
<maven.surefire.plugin.include.filter>**/*Test.java</maven.surefire.plugin.include.filter>
<maven.surefire.plugin.exclude.filter>**/ExecutionR*Test.*</maven.surefire.plugin.exclude.filter>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!-- In Jenkins for the job "AD_DFP_PV_CDS_kurt", it executes non regression
tests -->
<profile>
<id>validation</id>
<properties>
<maven.surefire.plugin.include.filter>**/ExecutionR*Test.*</maven.surefire.plugin.include.filter>
<maven.surefire.plugin.exclude.filter/>
</properties>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagBase>https://coconet-svn-fr-01.capgemini.com/svn/repos/pv-reports/tags</tagBase>
<username>svc-fr-plm</username>
<password>Passw0rd</password>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.maestrodev</groupId>
<artifactId>collabnet-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<project>fr_south_t30_plateau_virtuel_sne</project>
<pkg>PV_SNECMA_interne</pkg>
<release>${release.id}</release>
<releaseDescription>${project.description}</releaseDescription>
<teamForgeUrl>https://coconet2.capgemini.com</teamForgeUrl>
</configuration>
<executions>
<execution>
<id>install</id>
<phase>install</phase>
<goals>
<goal>deploy-to-releases</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>sonar</id>
<properties>
<maven.surefire.plugin.include.filter>**/*Test.java</maven.surefire.plugin.include.filter>
<maven.surefire.plugin.exclude.filter>**/ExecutionR*Test.*</maven.surefire.plugin.exclude.filter>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${maven.compiler.target}</source>
<target>${maven.compiler.source}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
<!-- Filter on specific tests: -->
<includes>
<include>${maven.surefire.plugin.include.filter}</include>
</includes>
<excludes>
<exclude>${maven.surefire.plugin.exclude.filter}</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
<!-- The JBoss AS plugin deploys your ear to a local JBoss AS container -->
<!-- Due to Maven's lack of intelligence with EARs we need to configure
the jboss-as maven plugin to skip deployment for all modules. We then enable
it specifically in the ear module. -->
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.16.10.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.googlecode.maven-overview-plugin</groupId>
<artifactId>maven-overview-plugin</artifactId>
<version>1.6</version>
<configuration>
<height>1200</height>
<width>1200</width>
<maxDepth>1</maxDepth>
<showVersion>true</showVersion>
<exclusions>
<exclusion>
<scope>test</scope>
</exclusion>
</exclusions>
<includes>
com.capgemini.*
</includes>
<scopes>
<scope>compile</scope>
<scope>provided</scope>
<scope>runtime</scope>
</scopes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<!-- The default maven delimiters are ${*} and @*@. The @*@ delimiter
will create bugs when an odd number of '@' is present in the resource being
filtered, such as an email address. Therefore only the ${*} will be activated. -->
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>${*}</delimiter>
</delimiters>
<nonFilteredFileExtensions> <!-- Those resources are copied, but left unfiltered. -->
<nonFilteredFileExtension>pdf
</nonFilteredFileExtension> <!-- Harmful, is bytecode not text file -->
<nonFilteredFileExtension>swf
</nonFilteredFileExtension> <!-- Harmful, is bytecode not text file -->
<nonFilteredFileExtension>jpeg
</nonFilteredFileExtension> <!-- Harmful, is bytecode not text file -->
<nonFilteredFileExtension>jpg
</nonFilteredFileExtension> <!-- Harmful, is bytecode not text file -->
<nonFilteredFileExtension>png
</nonFilteredFileExtension> <!-- Harmful, is bytecode not text file -->
<nonFilteredFileExtension>jrxml</nonFilteredFileExtension> <!-- Harmless, but unnecessary -->
</nonFilteredFileExtensions>
</configuration>
<!-- Problem with Maven filtering is that it doesn't keep a filtered file's encoding, so we have to do what's below -->
<executions>
<execution>
<!-- Turn off default resource copying -->
<id>default-resources</id>
</execution>
<execution>
<!-- Filter resources in properties file but impose ISO-8859-1 encoding (which is required for properties files). -->
<id>filter-properties-files</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<!-- Encoding for .properties files -->
<encoding>ISO-8859-1</encoding>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<!-- Filter every other files (like xml) with default (UTF-8) encoding -->
<id>copy-other-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>