-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
501 lines (454 loc) · 19.3 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
491
492
493
494
495
496
497
498
499
500
501
<?xml version='1.0' encoding='UTF-8'?>
<!--
~ Copyright (c) Seat24 AB
-->
<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>
<!--
################################################
# Section 1: Project information
################################################
-->
<groupId>com.etraveli.oss.codestyle</groupId>
<artifactId>etraveli-codestyle-reactor</artifactId>
<version>0.13.1-SNAPSHOT</version>
<name>${project.artifactId}</name>
<url>${site.top.url}/${path.in.reactor}</url>
<description>Etraveli Codestyle: Reactor (POM, version ${project.version})</description>
<packaging>pom</packaging>
<inceptionYear>2018</inceptionYear>
<organization>
<name>Etraveli</name>
<url>http://www.etraveli.com/</url>
</organization>
<licenses>
<license>
<name>Seat24 Travel Corporate Open Source License, based on The Apache Software License, Version 2.0</name>
<url>http://www.seat24.se/tech/licenses/seat24CorporateOpenSourceLicense-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<developers>
<developer>
<id>lj</id>
<name>Lennart Jörelid</name>
<email>[email protected]</email>
<roles>
<role>Committer</role>
</roles>
<organization>Etraveli</organization>
<organizationUrl>https://www.etraveligroup.com</organizationUrl>
<timezone>+1</timezone>
</developer>
</developers>
<properties>
<!--
Define the URL prefixes for Site Deployment and DistributionManagement.
These can be overridden in sub-reactors to tailor releases to other locations.
-->
<reactor.name>etraveli_codestyle</reactor.name>
<path.in.reactor />
<!--
Define URL prefixes used in the various URL settings of the POM.
-->
<git.repo.owner>etraveli</git.repo.owner>
<git.repo.url.prefix>https://github.com/${git.repo.owner}</git.repo.url.prefix>
<git.scm.url.prefix>scm:git:ssh://[email protected]/${git.repo.owner}</git.scm.url.prefix>
<site.url.prefix>http://${git.repo.owner}.github.io</site.url.prefix>
<site.top.url>${site.url.prefix}/${reactor.name}/Documentation/${project.version}</site.top.url>
<scm.connection.url>scm:git:${git.repo.url.prefix}/${reactor.name}.git</scm.connection.url>
<scm.devConnection.url>${git.scm.url.prefix}/${reactor.name}.git</scm.devConnection.url>
<distroManagement.url>${site.top.url}/${path.in.reactor}</distroManagement.url>
<scm.url>${git.repo.url.prefix}/${reactor.name}.git</scm.url>
<site.staging.localDirectory>/tmp/${reactor.name}</site.staging.localDirectory>
<maven.version>3.5.0</maven.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<!-- Build definition properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jdk.version>11</jdk.version>
<release.skipGpgSigning>true</release.skipGpgSigning>
<!-- Code style properties -->
<clean.plugin.version>3.0.0</clean.plugin.version>
<maven-project-info-reports-plugin.version>3.1.1</maven-project-info-reports-plugin.version>
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
<!-- Site plugin properties -->
<maven-site-plugin.version>3.9.1</maven-site-plugin.version>
<doxia-modules.version>1.8</doxia-modules.version>
<wagon-modules.version>2.10</wagon-modules.version>
</properties>
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jcenter</id>
<name>jcenter</name>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
<!--
################################################
# Section 2: Modules
################################################
-->
<modules>
<module>annotations</module>
<module>codestyle</module>
<module>poms</module>
</modules>
<!--
################################################
# Section 3: Build settings
################################################
-->
<build>
<pluginManagement>
<plugins>
<!--
Use a working version of the Maven versions plugin.
Why: Workaround for https://jira.codehaus.org/browse/MVERSIONS-236
Used: Only when called.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<skip>${release.skipGpgSigning}</skip>
</configuration>
</plugin>
<!--
Use the site-maven-plugin which works with GitHub site deployments.
Why: GitHub-based site deployment is done by committing into the branch gh-pages.
Used: Only at release time.
-->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Creating site for version ${project.version}</message>
<noJekyll>true</noJekyll>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!--
Configures the release plugin to use a custom release profile.
Why: Release artifacts
Used: Normal lifecycle, release goal
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<arguments>-Petraveli-release</arguments>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<tagNameFormat>${reactor.name}-@{project.version}</tagNameFormat>
<goals>deploy</goals>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.4</version>
</dependency>
</dependencies>
</plugin>
<!--
Configure the javadoc plugin not to fail on standard HTML
constructs when building using JDK 8.
Typical standard constructs include empty tags, like: <p />
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<failOnError>false</failOnError>
<stylesheet>java</stylesheet>
<groups>
<group>
<title>Etraveli: Frameworks</title>
<packages>com.etraveli.framework.*</packages>
</group>
<group>
<title>Etraveli: Frameworks</title>
<packages>com.etraveli.framework.*</packages>
</group>
<group>
<title>Nazgul Framework: Tools Packages</title>
<packages>se.jguru.nazgul.tools.*</packages>
</group>
</groups>
<useStandardDocletOptions>true</useStandardDocletOptions>
<encoding>${project.build.sourceEncoding}</encoding>
<docencoding>${project.build.sourceEncoding}</docencoding>
<charset>${project.build.sourceEncoding}</charset>
<breakiterator>true</breakiterator>
<version>true</version>
<author>true</author>
<keywords>true</keywords>
</configuration>
</plugin>
<!--
Configures the site plugin. Its use is further documented in the site documentation itself.
Why: Make compile and publish the Codestyle documentation.
Used: Site lifecycle, mvn site.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal />
</goals>
</execution>
</executions>
<configuration>
<topSiteURL>${site.url.prefix}/${reactor.name}</topSiteURL>
<stagingSiteURL>${site.url.prefix}/${reactor.name}</stagingSiteURL>
<stagingDirectory>${site.staging.localDirectory}</stagingDirectory>
<generateSitemap>true</generateSitemap>
<inputEncoding>${project.build.sourceEncoding}</inputEncoding>
<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
</configuration>
</plugin>
<!--
Provides Plantuml integration into site deployments.
Why: Convert Plantuml (*.puml) documents to png images, for use in site documentation.
Used: Site lifecycle, mvn site.
-->
<plugin>
<groupId>com.github.jeluard</groupId>
<artifactId>plantuml-maven-plugin</artifactId>
<version>7954</version>
<configuration>
<sourceFiles>
<directory>${basedir}</directory>
<includes>
<include>src/site/**/*.puml</include>
</includes>
</sourceFiles>
<outputDirectory>${project.build.directory}/site/images/plantuml</outputDirectory>
</configuration>
<executions>
<execution>
<id>generate-plantuml-diagrams</id>
<goals>
<goal>generate</goal>
</goals>
<phase>pre-site</phase>
</execution>
</executions>
<dependencies>
<!--
NOTE!
Do not upgrade the plantuml dependency above version 8030, as those plantuml releases
are not binary compatible with the plugin version 7954.
-->
<dependency>
<groupId>net.sourceforge.plantuml</groupId>
<artifactId>plantuml</artifactId>
<version>8030</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<outputDirectory>${project.build.directory}/site</outputDirectory>
<plugins>
<!--
Configures the projects-info-reports plugin.
Why: Reduce the time consumed considerably by removing the need to acquire
dependency details and locations.
Used: Site lifecycle, mvn site.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
</configuration>
</plugin>
<!--
Use a working version of the Maven versions plugin.
Why: Workaround for https://jira.codehaus.org/browse/MVERSIONS-236
Used: Only when called.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
</plugin>
</plugins>
</reporting>
<!--
################################################
# Section 4: External systems
################################################
-->
<!--
Define the Continuous Build server address.
-->
<ciManagement>
<system>Jenkins</system>
<url>https://jenkins.etraveli.net/</url>
</ciManagement>
<!--
Define the issue management system.
-->
<issueManagement>
<system>github</system>
<url>https://github.com/lennartj/nazgul_tools/issues</url>
</issueManagement>
<!--
Define repository settings for Maven's deploy and release plugins.
Move parts to settings.xml, as per recommendation within Maven specs.
-->
<distributionManagement>
<repository>
<id>ossrh-staging</id>
<name>Sonatype OSS Nexus: Releases</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>ossrh-snapshots</id>
<name>Sonatype OSS Nexus: Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>github_site</id>
<name>GitHub Site</name>
<url>${site.top.url}/${path.in.reactor}</url>
</site>
</distributionManagement>
<!--
Define connections for Maven's VCS integration.
-->
<scm>
<connection>${scm.connection.url}</connection>
<developerConnection>${scm.devConnection.url}</developerConnection>
<url>${scm.url}</url>
<tag>HEAD</tag>
</scm>
<!--
################################################
# Section 5: Profiles
################################################
-->
<profiles>
<!--
Release profile for Nazgul Reactors.
-->
<profile>
<id>etraveli-release</id>
<build>
<plugins>
<!--
Release Plugin configuration.
Use a custom id for the deploy-to-repo operation.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
<!--
Always include a source JAR.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>default-jar-no-fork</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Use the JavaDoc plugin to attach a JavaDoc JAR to release artifacts.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Sign the artifacts with the GPG plugin.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${release.skipGpgSigning}</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>