Newer
Older
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>parent</artifactId>
Thierry Devillechabrolle
committed
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>package</artifactId>
Thierry Devillechabrolle
committed
<name>VITAM-UI Package</name>
<description>Packaging VITAM-UI</description>
<profiles>
<profile>
<id>package-all</id>
<dependencies>
<!-- VITAM-UI dependencies -->
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>cas-server</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>iam-external</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>iam-internal</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
</dependencies>
<build>
<plugins>
<!-- download dependencies for signing rpms -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies-rpm-signed</id>
<phase>process-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>fr.gouv.vitam</includeGroupIds>
<includeTypes>rpm</includeTypes>
<outputDirectory>${basedir}/rpm_signed/vitam-product/</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${maven.exec.plugin.version}</version>
<executions>
<!-- sign rpm -->
<execution>
<id>Create signed rpm</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>./create_rpm_signed.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
<!-- generate assemblies -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>${basedir}/assembly.xml</descriptor>
<descriptor>${basedir}/assembly-deployment.xml</descriptor>
</descriptors>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>package-deployment</id>
<build>
<plugins>
<!-- generate assemblies -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>${basedir}/assembly-deployment.xml</descriptor>
</descriptors>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>