blob: 6b1f9a20f3e08b862154d1d188700e231759c7b9 [file] [log] [blame]
Jonathan Dumontb6a777f2015-10-15 15:48:30 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
Jonathan Dumont27b944b2015-11-18 11:15:36 +01003 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5 http://maven.apache.org/maven-v4_0_0.xsd">
6 <modelVersion>4.0.0</modelVersion>
Jonathan Dumontb6a777f2015-10-15 15:48:30 +02007
Jonathan Dumont27b944b2015-11-18 11:15:36 +01008 <!-- PROJECT DESCRIPTION -->
9 <groupId>org.polarsys.esf</groupId>
10 <artifactId>esf-infra</artifactId>
11 <version>0.7.0-SNAPSHOT</version>
12 <packaging>pom</packaging>
13 <name>ESF</name>
14 <description>ESF description.</description>
15
16 <!-- DEVELOPERS -->
17 <developers>
18 <developer>
19 <id>JOD</id>
20 <name>Jonathan Dumont</name>
21 <email>jonathan.dumont@all4tec.net</email>
22 <organization>ALL4TEC</organization>
23 <organizationUrl>http://www.all4tec.net/</organizationUrl>
24 <roles>
25 <role>Project leader</role>
26 </roles>
27 <timezone>+1</timezone>
28 </developer>
29
30 <developer>
31 <id>YUM</id>
32 <name>Yupanqui Munoz Julho</name>
33 <email>yupanqui.munozjulho@cea.fr</email>
34 <organization>CEA List</organization>
35 <organizationUrl>www-list.cea.fr/</organizationUrl>
36 <roles>
37 <role>Project leader</role>
38 </roles>
39 <timezone>+1</timezone>
40 </developer>
41 </developers>
42
43 <!-- MODULES -->
44 <modules>
45 <module>core</module>
46 <module>p2</module>
Jonathan Dumont2e23c3e2015-11-23 16:42:30 +010047 <module>releng</module>
Jonathan Dumont27b944b2015-11-18 11:15:36 +010048 </modules>
49
50 <!-- REPOSITORIES -->
51 <repositories>
52 <repository>
Yupanqui Munoze9931b32016-04-29 15:52:00 +020053 <id>eclipse-neon</id>
Jonathan Dumont27b944b2015-11-18 11:15:36 +010054 <layout>p2</layout>
Yupanqui Munoze9931b32016-04-29 15:52:00 +020055 <url>http://download.eclipse.org/releases/neon</url>
Jonathan Dumont27b944b2015-11-18 11:15:36 +010056 </repository>
57 </repositories>
Yupanqui Munoz85904a42016-12-13 13:58:35 +010058
Yupanqui Munozf457f052016-12-13 16:18:25 +010059 <pluginRepositories>
60 <pluginRepository>
61 <id>org.eclipse.cbi.maven.plugins</id>
62 <name>Eclipse CBI</name>
63 <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
64 <releases>
65 <enabled>true</enabled>
66 </releases>
67 <snapshots>
68 <enabled>false</enabled>
69 </snapshots>
70 </pluginRepository>
71 </pluginRepositories>
72
Jonathan Dumont27b944b2015-11-18 11:15:36 +010073 <!-- BUILD DEFINITION -->
74 <build>
75 <plugins>
76
77 <!-- Tycho plugin -->
78 <!-- This is the part which modify default packaging to add those specific to Eclipse RCP -->
79 <plugin>
80 <groupId>org.eclipse.tycho</groupId>
81 <artifactId>tycho-maven-plugin</artifactId>
82 <version>${tycho-version}</version>
83 <extensions>true</extensions>
84 </plugin>
85
86 <!-- Tycho target platform configuration -->
87 <plugin>
88 <groupId>org.eclipse.tycho</groupId>
89 <artifactId>target-platform-configuration</artifactId>
90 <version>${tycho-version}</version>
91 <configuration>
92 <resolver>p2</resolver>
93 <environments>
94 <environment>
95 <os>win32</os>
96 <ws>win32</ws>
97 <arch>x86_64</arch>
98 </environment>
99 </environments>
100 </configuration>
101 </plugin>
102
103 <!-- Plugin used to manage the versionning of tycho artifacts -->
104 <plugin>
105 <groupId>org.eclipse.tycho</groupId>
106 <artifactId>tycho-versions-plugin</artifactId>
107 <version>${tycho-version}</version>
108 </plugin>
109
Jonathan Dumont8ffd5c92015-12-03 15:49:43 +0100110 <!-- Plugin used to check the license. -->
111 <!-- NB: It's not configured to write the licence header automatically. -->
112 <!-- Usage: mvn licence:check -->
113 <plugin>
114 <groupId>com.mycila</groupId>
115 <artifactId>license-maven-plugin</artifactId>
116 <version>2.11</version>
117 <configuration>
118 <header>${session.executionRootDirectory}/releng/licence/epl.header.txt</header>
119 <useDefaultExcludes>true</useDefaultExcludes>
120 <failIfMissing>true</failIfMissing>
121 <!-- Avoid a strict check as the header comment contains also the contributors. -->
122 <strictCheck>false</strictCheck>
123 <aggregate>true</aggregate>
124 <includes>
125 <include>**/*.java</include>
126 </includes>
127 <excludes>
128 <exclude>**/src/site/**</exclude>
129 <exclude>**/target/**</exclude>
130 </excludes>
131 <properties>
Yupanqui Munozf9ef8bb2016-07-01 13:11:46 +0200132 <year>2016</year>
Jonathan Dumont8ffd5c92015-12-03 15:49:43 +0100133 </properties>
134 </configuration>
135 <executions>
136 <execution>
137 <phase>process-sources</phase>
138 <goals>
139 <goal>check</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
Jonathan Dumont27b944b2015-11-18 11:15:36 +0100144 </plugins>
145 </build>
146
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100147 <profiles>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100148 <!-- Profile for tasks specific to the build on Eclipse Hudson instance:
149 - packAndSign: produce a stable update site (Packed & signed). Used for releases (+ milestones) only.
150 -->
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100151 <profile>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100152 <id>packAndSign</id>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100153 <build>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100154 <pluginManagement>
155 <plugins>
156 <plugin>
157 <groupId>org.eclipse.cbi.maven.plugins</groupId>
158 <artifactId>eclipse-jarsigner-plugin</artifactId>
159 <version>${jarsigner-version}</version>
160 </plugin>
161 </plugins>
162 </pluginManagement>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100163 <plugins>
164
165 <!-- Plugins configuration to be able to sign the jars built on Eclipse servers -->
166 <plugin>
167 <groupId>org.eclipse.tycho.extras</groupId>
168 <artifactId>tycho-pack200a-plugin</artifactId>
Jonathan Dumont58f71b42015-12-14 09:27:49 +0100169 <version>${tycho-version}</version>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100170 <executions>
171 <execution>
172 <id>pack200-normalize</id>
173 <goals>
174 <goal>normalize</goal>
175 </goals>
176 </execution>
177 </executions>
178 </plugin>
179
180 <plugin>
181 <groupId>org.eclipse.cbi.maven.plugins</groupId>
182 <artifactId>eclipse-jarsigner-plugin</artifactId>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100183 <version>${jarsigner-version}</version>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100184 <executions>
185 <execution>
186 <id>sign</id>
187 <goals>
188 <goal>sign</goal>
189 </goals>
190 </execution>
191 </executions>
192 </plugin>
193
194 <plugin>
195 <groupId>org.eclipse.tycho.extras</groupId>
196 <artifactId>tycho-pack200b-plugin</artifactId>
Jonathan Dumont58f71b42015-12-14 09:27:49 +0100197 <version>${tycho-version}</version>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100198 <executions>
199 <execution>
200 <id>pack200-pack</id>
201 <goals>
202 <goal>pack</goal>
203 </goals>
204 </execution>
205 </executions>
206 </plugin>
207
208 <!-- Make sure that Tycho generates its p2 metadata after the JAR has been packed -->
209 <plugin>
210 <groupId>org.eclipse.tycho</groupId>
211 <artifactId>tycho-p2-plugin</artifactId>
Jonathan Dumont58f71b42015-12-14 09:27:49 +0100212 <version>${tycho-version}</version>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100213 <executions>
214 <execution>
215 <id>attach-p2-metadata</id>
216 <phase>package</phase>
217 <goals>
218 <goal>p2-metadata</goal>
219 </goals>
220 </execution>
221 </executions>
222 <configuration>
223 <defaultP2Metadata>false</defaultP2Metadata>
224 </configuration>
225 </plugin>
226
227 </plugins>
228 </build>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100229 <activation>
230 <property>
231 <name>SIGN</name>
232 <value>true</value>
233 </property>
234 </activation>
Jonathan Dumontf282cf22015-12-11 15:07:49 +0100235 </profile>
236
237 </profiles>
238
Jonathan Dumont27b944b2015-11-18 11:15:36 +0100239 <!-- PROPERTIES -->
240 <properties>
241 <!-- Product version displayed in the title bar, etc. -->
Jonathan Dumontb6a777f2015-10-15 15:48:30 +0200242 <product.version>0.7.0</product.version>
243
Jonathan Dumont27b944b2015-11-18 11:15:36 +0100244 <!-- Tycho plugin version -->
Jonathan Dumont58f71b42015-12-14 09:27:49 +0100245 <tycho-version>0.24.0</tycho-version>
Yupanqui Munoz85904a42016-12-13 13:58:35 +0100246
247 <!-- eclipse-jarsigner plugin version -->
Yupanqui Munozf457f052016-12-13 16:18:25 +0100248 <jarsigner-version>1.1.3</jarsigner-version>
Jonathan Dumont27b944b2015-11-18 11:15:36 +0100249
250 <!-- Enforce used of UTF encoding is mandatory. Otherwise, default platform encoding is used, and some issues appears with differents os constructions -->
251 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Jonathan Dumontbaf87c62015-12-02 21:32:12 +0100252
253 <!-- Sonar properties -->
Jonathan Dumont2cf9dcf2015-12-02 21:45:04 +0100254 <sonar.exclusions>**/src-gen/**/*</sonar.exclusions>
Jonathan Dumontbaf87c62015-12-02 21:32:12 +0100255 <sonar.language>java</sonar.language>
Jonathan Dumont27b944b2015-11-18 11:15:36 +0100256 </properties>
257
Jonathan Dumontb6a777f2015-10-15 15:48:30 +0200258</project>