-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
318 lines (286 loc) · 12.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
******************************************************************************
OpenSILEX - Licence AGPL V3.0 - https://www.gnu.org/licenses/agpl-3.0.en.html
Copyright © INRA 2019
Contact: vincent.migot@inra.fr, anne.tireau@inra.fr, pascal.neveu@inra.fr
OpenSilex Development Environment main pom.xml
If you add a new module, add it in the <modules> section and
in the <dependencies> section in order to make it work.
******************************************************************************
-->
<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>
<artifactId>opensilex-dev</artifactId>
<packaging>pom</packaging>
<name>opensilex-dev</name>
<url>https://www.opensilex.org/</url>
<parent>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-parent</artifactId>
<version>${revision}</version>
<relativePath>opensilex-parent/pom.xml</relativePath>
</parent>
<properties>
<skipFrontBuild>true</skipFrontBuild>
<skipTypeScriptLibBuild>true</skipTypeScriptLibBuild>
</properties>
<modules>
<!-- Main OpenSilex modules -->
<module>opensilex-parent</module>
<module>opensilex</module>
<module>opensilex-sparql</module>
<module>opensilex-nosql</module>
<module>opensilex-fs</module>
<module>opensilex-rest</module>
<module>opensilex-module</module>
<module>opensilex-core</module>
<module>opensilex-front</module>
<!-- Extension modules -->
<!--<module>inrae-sixtine</module>-->
<module>phis-ws/phis2-ws</module>
<!-- Development module -->
<module>opensilex-dev-tools</module>
<!-- Release module -->
<module>opensilex-release</module>
<!-- Maven Plugin module -->
<module>opensilex-swagger-codegen-maven-plugin</module>
<!-- Documentation module -->
<module>opensilex-doc</module>
</modules>
<dependencies>
<!-- Plugin dependencies -->
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-swagger-codegen-maven-plugin</artifactId>
<version>${revision}</version>
</dependency>
<!-- OpenSilex build-in modules dependencies-->
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-sparql</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-nosql</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-fs</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-rest</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-core</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-front</artifactId>
<version>${revision}</version>
</dependency>
<!--Other extension modules must be declared as dependencies-->
<dependency>
<groupId>org.opensilex</groupId>
<artifactId>phis2ws</artifactId>
<version>${revision}</version>
</dependency>
<!-- <dependency>
<groupId>org.opensilex</groupId>
<artifactId>inrae-sixtine</artifactId>
<version>${revision}</version>
</dependency> -->
</dependencies>
<build>
<plugins>
<!-- Documentation site generation plugin -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${maven.site.plugin.version}</version>
<inherited>false</inherited>
<configuration>
<outputDirectory>${generated.doc.site.directory}</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<!-- Add Javadoc generation plugin during "site" phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- Add project sources link and references in documentation during "site" phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<javadocDir>${generated.doc.site.directory}/apidocs</javadocDir>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven.pmd.plugin.version}</version>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>${java.compiler.version}</targetJdk>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<outputFile>./${generated.doc.site.directory}/${project.name}/checkstyle-result.xml</outputFile>
<outputDirectory>./${generated.doc.site.directory}/${project.name}/checkstyle/</outputDirectory>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>checkstyle-aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<profiles>
<!-- Profile which enable Jacoco Code coverage -->
<profile>
<id>with-test-report</id>
<build>
<plugins>
<!--Code coverage @see https://www.eclemma.org/jacoco/trunk/index.html -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<inherited>false</inherited>
<configuration>
<excludes>
<exclude>**/*.war</exclude>
</excludes>
<outputDirectory>${generated.doc.site.directory}/jacoco/</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>merge</id>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
<directory>${maven.multiModuleProjectDirectory}</directory>
<includes>
<include>**/jacoco.exec</include>
</includes>
</fileSet>
</fileSets>
<destFile>${project.build.directory}/jacoco.exec</destFile>
</configuration>
</execution>
<!-- Create aggregate code coverage report accross all Maven modules -->
<execution>
<id>jacoco report aggregate</id>
<phase>post-integration-test</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<dataFileIncludes>**/jacoco.exec</dataFileIncludes>
<includes>
<!--Analyze class files only to exclude shaded agent JAR from report-->
<include>**/*.class</include>
</includes>
<outputDirectory>${generated.doc.site.directory}/jacoco/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<!-- Add project sources link and references in documentation during "site" phase -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<reportSets>
<reportSet>
<reports>
<report>report-aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</profile>
<!-- Profile which enable OWASP security check for libraries, could be VERY slow -->
<profile>
<id>with-security-check</id>
<build>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<reportSets>
<reportSet>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
</project>