forked from Meeds-io/meeds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
490 lines (486 loc) · 22.1 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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<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>org.exoplatform</groupId>
<artifactId>maven-parent-pom</artifactId>
<version>25-M01</version>
<relativePath />
</parent>
<groupId>io.meeds.distribution</groupId>
<artifactId>plf-public-distributions</artifactId>
<version>1.4.x-SNAPSHOT</version>
<packaging>pom</packaging>
<name>eXo Meeds:: Meeds Public Distribution</name>
<modules>
<module>services</module>
<module>webapps</module>
<module>packaging</module>
</modules>
<scm>
<connection>scm:git:git://github.com/meeds-io/meeds.git</connection>
<developerConnection>scm:git:[email protected]:meeds-io/meeds.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/meeds-io/meeds</url>
</scm>
<properties>
<!-- **************************************** -->
<!-- Repository settings -->
<!-- **************************************** -->
<exo.snapshots.repo.url>https://repository.exoplatform.org/content/repositories/meeds-snapshots</exo.snapshots.repo.url>
<!-- **************************************** -->
<!-- Dependencies Versions -->
<!-- **************************************** -->
<!-- The version of Platform To bundle -->
<org.exoplatform.social.version>6.4.x-SNAPSHOT</org.exoplatform.social.version>
<org.exoplatform.platform-ui.version>6.4.x-SNAPSHOT</org.exoplatform.platform-ui.version>
<!-- The version of the add-ons manager -->
<org.exoplatform.platform.addons-manager.version>2.4.x-SNAPSHOT</org.exoplatform.platform.addons-manager.version>
<!-- ************** -->
<!-- Add-ons for Community packaging -->
<!-- ************** -->
<addon.exo.kudos.id>meeds-kudos</addon.exo.kudos.id>
<addon.exo.kudos.version>2.4.x-SNAPSHOT</addon.exo.kudos.version>
<addon.exo.perk-store.id>meeds-perk-store</addon.exo.perk-store.id>
<addon.exo.perk-store.version>2.4.x-SNAPSHOT</addon.exo.perk-store.version>
<addon.exo.wallet.id>meeds-wallet</addon.exo.wallet.id>
<addon.exo.wallet.version>2.4.x-SNAPSHOT</addon.exo.wallet.version>
<addon.exo.gamification.id>meeds-gamification</addon.exo.gamification.id>
<addon.exo.gamification.version>2.4.x-SNAPSHOT</addon.exo.gamification.version>
<addon.exo.push-notifications.id>meeds-push-notifications</addon.exo.push-notifications.id>
<addon.exo.push-notifications.version>2.4.x-SNAPSHOT</addon.exo.push-notifications.version>
<addon.exo.app-center.id>meeds-app-center</addon.exo.app-center.id>
<addon.exo.app-center.version>2.4.x-SNAPSHOT</addon.exo.app-center.version>
<addon.exo.notes.id>meeds-notes</addon.exo.notes.id>
<addon.exo.notes.version>1.2.x-SNAPSHOT</addon.exo.notes.version>
<addon.exo.tasks.id>meeds-tasks</addon.exo.tasks.id>
<addon.exo.tasks.version>3.4.x-SNAPSHOT</addon.exo.tasks.version>
<addon.exo.analytics.id>meeds-analytics</addon.exo.analytics.id>
<addon.exo.analytics.version>1.3.x-SNAPSHOT</addon.exo.analytics.version>
<addon.exo.poll.id>meeds-poll</addon.exo.poll.id>
<addon.exo.poll.version>1.1.x-SNAPSHOT</addon.exo.poll.version>
<addon.meeds.gamification-github.id>meeds-gamification-github</addon.meeds.gamification-github.id>
<addon.meeds.gamification-github.version>1.1.x-SNAPSHOT</addon.meeds.gamification-github.version>
<!-- Add-on manager extension to use (empty for Unix, .bat for Windows) -->
<addon.manager.extension />
<!-- Sonar properties -->
<sonar.organization>meeds-io</sonar.organization>
</properties>
<dependencyManagement>
<dependencies>
<!-- Dependencies -->
<dependency>
<groupId>org.exoplatform.social</groupId>
<artifactId>social</artifactId>
<version>${org.exoplatform.social.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.platform-ui</groupId>
<artifactId>platform-ui</artifactId>
<version>${org.exoplatform.platform-ui.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.platform</groupId>
<artifactId>addons-manager</artifactId>
<version>${org.exoplatform.platform.addons-manager.version}</version>
<type>zip</type>
</dependency>
<!-- Pre-bundled addons -->
<dependency>
<groupId>org.exoplatform.addons.wallet</groupId>
<artifactId>wallet-packaging</artifactId>
<version>${addon.exo.wallet.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.kudos</groupId>
<artifactId>kudos-packaging</artifactId>
<version>${addon.exo.kudos.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.perk-store</groupId>
<artifactId>perk-store-packaging</artifactId>
<version>${addon.exo.perk-store.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.gamification</groupId>
<artifactId>gamification-packaging</artifactId>
<version>${addon.exo.gamification.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.push-notifications</groupId>
<artifactId>exo-push-notifications-addon-packaging</artifactId>
<version>${addon.exo.push-notifications.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.app-center</groupId>
<artifactId>app-center-packaging</artifactId>
<version>${addon.exo.app-center.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.notes</groupId>
<artifactId>notes-packaging</artifactId>
<version>${addon.exo.notes.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.analytics</groupId>
<artifactId>analytics-packaging</artifactId>
<version>${addon.exo.analytics.version}</version>
<scope>provided</scope>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.task</groupId>
<artifactId>task-management-packaging</artifactId>
<version>${addon.exo.tasks.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.poll</groupId>
<artifactId>poll-packaging</artifactId>
<version>${addon.exo.poll.version}</version>
<scope>provided</scope>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.gamification-github</groupId>
<artifactId>gamification-github-packaging</artifactId>
<version>${addon.meeds.gamification-github.version}</version>
<scope>provided</scope>
<type>zip</type>
</dependency>
<!-- Project artifacts -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-configuration</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-community-edition-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-public-distributions</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-public-distributions</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>source-release</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-community-tomcat-standalone</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-community-tomcat-standalone</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-community-sources</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-exo-tools</artifactId>
<version>${project.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-packaging-resources</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-packaging-resources</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-root-webapp</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-root-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-meeds-extension</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-meeds-extension</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-tomcat-integration-webapp</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-tomcat-integration-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-tomcat-pc-creator-listener</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-tomcat-pc-creator-listener</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plf-tomcat-resources</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- Required to not break gmaven usage for -Pfix-headers by example-->
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<configuration>
<providerSelection>2.0</providerSelection>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- Additional tasks done while performing a release -->
<id>exo-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>banned-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- We must take care to never grab these artifacts in our distribution -->
<!-- Never exclude them here but ask to exclude them at the furthest dependency level in the dependency tree -->
<bannedDependencies>
<message>There are some unwanted dependencies in the dependency tree. Find them with "mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId:version" and remove them at the furthest dependency level in the dependency tree</message>
<searchTransitive>true</searchTransitive>
<excludes>
<!-- No Apache Tomcat artifacts have to be added in the packaging -->
<exclude>org.apache.tomcat:*</exclude>
<!-- Ant and related aren't really useful for us at runtime -->
<exclude>org.apache.ant:*</exclude>
<exclude>org.apache.axis:axis-ant:*</exclude>
<!-- commons-logging is forbidden and must be replaced by org.slf4j:jcl-over-slf4j -->
<exclude>commons-logging:*</exclude>
<!-- log4j is forbidden and must be replaced by org.slf4j:log4j-over-slf4j -->
<exclude>log4j:*</exclude>
<exclude>org.apache.logging.log4j:*</exclude>
<!-- We use jcl-over-slf4j, thus this one is forbidden to avoid infinite loops -->
<exclude>org.slf4j:slf4j-jcl:*</exclude>
<!-- We use log4j-over-slf4j, thus this one is forbidden to avoid infinite loops -->
<exclude>org.slf4j:slf4j-log4j12:*</exclude>
<exclude>org.slf4j:slf4j-simple:*</exclude>
<!-- We use jul-to-slf4j, thus this one is forbidden to avoid infinite loops -->
<exclude>org.slf4j:slf4j-jdk14:*</exclude>
<!-- These old versions of xstream are in conflict with new ones under com.thoughtworks.xstream:xstream -->
<exclude>xstream:xstream:*</exclude>
<!-- These old versions of jdom are in conflict with new ones under org.jdom -->
<exclude>jdom:*:*</exclude>
<!-- These old versions of eXo portal are in conflict with new ones under org.exoplatform.gatein.portal -->
<exclude>org.exoplatform.portal:*:*</exclude>
<!-- Servlet API are provided by the app server. It shouldn't come from a project -->
<exclude>javax.servlet:*</exclude>
<exclude>com.google.gwt:gwt-user:*</exclude>
<exclude>javax.servlet.jsp:*</exclude>
<!-- Testing stuffs should never come here -->
<exclude>junit:*</exclude>
<exclude>org.testng:*</exclude>
<exclude>org.exoplatform.tool:exo.tool.framework.junit</exclude>
<exclude>org.jmock:*</exclude>
<exclude>jmock:*</exclude>
<exclude>org.mockito:*</exclude>
<!-- These old versions of jdom are in conflict with new ones under org.jdom:* -->
<exclude>jdom:*</exclude>
<!-- These artifacts are in conflict with others ones under xpp3:xpp3 -->
<exclude>xpp3:xpp3_min</exclude>
<!-- These artifact is in conflict with ones under commons-beanutils:commons-beanutils -->
<exclude>commons-beanutils:commons-beanutils-core</exclude>
<!-- This artifact is in conflict with the one under org.jboss.logging:jboss-logging -->
<exclude>org.jboss.logging:jboss-logging-spi</exclude>
<!-- This artifact is in conflict with the one under org.codehaus.woodstox:woodstox-core-asl -->
<exclude>org.codehaus.woodstox:wstx-asl</exclude>
<!-- These are provided APIs by Java itself or the app server -->
<exclude>xml-apis:*</exclude>
<exclude>org.apache.geronimo.specs:geronimo-stax-api_1.0_spec</exclude>
<exclude>stax:*</exclude>
<exclude>javax.xml.stream:*</exclude>
<exclude>org.apache.geronimo.specs:geronimo-activation_1.0.2_spec</exclude>
<exclude>org.jboss.javaee:jboss-transaction-api</exclude>
<exclude>org.jboss.spec.javax.transaction:*</exclude>
<exclude>org.ow2.spec.ee:ow2-jta-1.1-spec</exclude>
<!-- PLF-4528 / CAL-148 : Conflict with com.totsp.feedpod:itunes-com-podcast -->
<exclude>rome:modules:*</exclude>
<!-- Don't package any XML APIs dep to avoid conflicts the JVM -->
<exclude>*:xmlParserAPIs:*</exclude>
<!-- PLF-6122: Exclude icepdf older than 5.1.0. The groupId for Open Source bundles is now org.icepdf.os -->
<exclude>org.icepdf:icepdf-core:*</exclude>
<!-- COR-338: Exclude Apache poi-ooxml 3.8. Platform uses now 3.8-eXo01 -->
<exclude>org.apache.poi:poi-ooxml:[3.8]</exclude>
<!-- DEP-101: Elasticsearch depends on lucene version incompatible with the JCR -->
<exclude>org.apache.lucene:*:4</exclude>
</excludes>
<includes>
<!-- This artifact isn't by default in tomcat -->
<include>org.apache.tomcat:tomcat-catalina-jmx-remote</include>
<!-- We can use the tomcat distro -->
<include>org.apache.tomcat:tomcat:zip</include>
</includes>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-bytecode-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- This rule checks the dependencies transitively and fails if any class of any dependency is having its bytecode version higher than the one specified. -->
<enforceBytecodeVersion>
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-upper-bound-deps</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- WARNING : Maven dependency resolution system didn't selected the higher version required by all transitive dependencies -->
<!-- See: http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html -->
<requireUpperBoundDeps />
</rules>
<fail>false</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- This profile is used to allow github action to build branches. The github action is used for sonar analysis -->
<profile>
<id>project-repositories</id>
<activation>
<property>
<name>!skip-project-repositories</name>
</property>
</activation>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>repository.exoplatform.org</id>
<url>https://repository.exoplatform.org/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>repository.exoplatform.org</id>
<url>https://repository.exoplatform.org/public</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</project>