pom.xml 30.8 KB
Newer Older
1
2
3
<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>

Benoit Lavenier's avatar
Benoit Lavenier committed
4
5
  <groupId>org.duniter</groupId>
  <artifactId>duniter4j</artifactId>
6
  <version>1.2.2</version>
7
  <packaging>pom</packaging>
Benoit Lavenier's avatar
Benoit Lavenier committed
8
9
10
11
12
13
14
15
16
  <name>Duniter4j</name>
  <description>a Duniter Java Client API</description>

  <url>http://doc.e-is.pro/duniter4j/</url>
  <inceptionYear>2014</inceptionYear>
  <organization>
    <name>Duniter Team</name>
    <url>http://www.duniter.fr</url>
  </organization>
17

Benoit Lavenier's avatar
Benoit Lavenier committed
18
19
20
21
  <prerequisites>
    <maven>3.1.1</maven>
  </prerequisites>

22
23
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Benoit Lavenier's avatar
Benoit Lavenier committed
24
    <file.encoding>UTF-8</file.encoding>
Benoit Lavenier's avatar
Benoit Lavenier committed
25
26
27
28
29

    <!-- Project properties -->
    <javaVersion>1.8</javaVersion>
    <signatureArtifactId>java18</signatureArtifactId>
    <signatureVersion>1.0</signatureVersion>
30
31

    <!-- Commons versions -->
Benoit Lavenier's avatar
Benoit Lavenier committed
32
    <log4j.version>1.2.17</log4j.version>
33
    <slf4j.version>1.7.5</slf4j.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
34
    <guava.version>22.0</guava.version>
35
    <xml-apis.version>2.0.2</xml-apis.version>
36
37
    <kalium.version>0.6.0_PR64</kalium.version>
    <jnr-ffi.version>2.1.7</jnr-ffi.version>
38
    <scrypt.version>1.4.0</scrypt.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
39
40
    <jna.version>4.2.0</jna.version>
    <tyrus.version>1.13.1</tyrus.version>
41
    <jackson.version>2.9.0</jackson.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
42
43
    <stringtemplate.version>4.0.2</stringtemplate.version>
    <jTextUtilsVersion>0.3.3</jTextUtilsVersion>
44
    <lombok.version>1.16.20</lombok.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
45

46
    <nuitonConfigVersion>3.0</nuitonConfigVersion>
47
    <nuitonVersionVersion>1.0-rc-2</nuitonVersionVersion>
Benoit Lavenier's avatar
Benoit Lavenier committed
48
    <nuitonI18nVersion>3.6.3</nuitonI18nVersion>
49
50

    <!-- UI versions -->
Benoit Lavenier's avatar
Benoit Lavenier committed
51
52
53
    <spring.version>4.2.1.RELEASE</spring.version>
    <aspectj.version>1.8.7</aspectj.version>

54
55
    <!-- Unit test -->
    <junit.version>4.12</junit.version>
56
57
58
    <jetty.version>9.0.4.v20130625</jetty.version>

    <!--license-maven-plugin config -->
Benoit Lavenier's avatar
Benoit Lavenier committed
59
    <maven.license.file>${project.basedir}/LICENSE.txt</maven.license.file>
Benoit Lavenier's avatar
Benoit Lavenier committed
60
    <license.licenseFile>${maven.license.file}</license.licenseFile>
61
62
    <license.useMissingFile>true</license.useMissingFile>
    <license.failIfWarning>true</license.failIfWarning>
Benoit Lavenier's avatar
Benoit Lavenier committed
63
    <license.organizationName>${project.organization.name}</license.organizationName>
64
65
66
67
68
    <license.licenseName>gpl_v3</license.licenseName>

    <!-- release config -->
    <autoVersionSubmodules>true</autoVersionSubmodules>
    <goals>deploy</goals>
69
    <arguments>-DperformFullRelease</arguments>
70
    <preparationGoals>verify</preparationGoals>
Benoit Lavenier's avatar
Benoit Lavenier committed
71

Benoit Lavenier's avatar
Benoit Lavenier committed
72
73
74
    <!-- Last JRE version to use -->
    <jreVersion>1.8.77</jreVersion>

Benoit Lavenier's avatar
Benoit Lavenier committed
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
    <!-- nuiton maven plugins version -->
    <jrstPluginVersion>2.1</jrstPluginVersion>
    <helperPluginVersion>2.3.2</helperPluginVersion>

    <!-- apache maven plugins version -->
    <jarPluginVersion>3.0.2</jarPluginVersion>
    <sitePluginVersion>3.6</sitePluginVersion>
    <changesPluginVersion>2.12.1</changesPluginVersion>
    <changelogPluginVersion>2.3</changelogPluginVersion>
    <projectInfoReportsPluginVersion>2.9</projectInfoReportsPluginVersion>
    <jrxPluginVersion>2.5</jrxPluginVersion>
    <surefirePluginVersion>2.20.1</surefirePluginVersion>
    <markdownPluginVersion>1.7</markdownPluginVersion>
    <enforcerPluginVersion>1.4.1</enforcerPluginVersion>
    <sourcePluginVersion>3.0.1</sourcePluginVersion>
    <releasePluginVersion>2.5.3</releasePluginVersion>

    <!-- codehaus mojo plugins -->
    <licensePluginVersion>1.13</licensePluginVersion>
    <execPluginVersion>1.6.0</execPluginVersion>
    <wagonPluginVersion>1.0</wagonPluginVersion>
    <versionsPluginVersion>2.3</versionsPluginVersion>
    <findbugsPluginVersion>3.0.5</findbugsPluginVersion>

    <!-- web site -->
    <locales>en</locales>
101
102
103
104
105
106
107
108
109
110
111

    <!-- I18n configuration -->
    <i18n.bundles>fr_FR,en_GB</i18n.bundles>
    <i18n.silent>true</i18n.silent>
    
    <!-- by default, use maven 2 source base dir -->
    <maven.src.dir>${basedir}/src</maven.src.dir>

    <!-- where to generate sources -->
    <maven.gen.dir>${project.build.directory}/generated-sources</maven.gen.dir>

Benoit Lavenier's avatar
Benoit Lavenier committed
112
    <!-- Could be overriding in modules -->
Benoit Lavenier's avatar
Benoit Lavenier committed
113
    <maven.jar.main.class />
Benoit Lavenier's avatar
Benoit Lavenier committed
114

115
116
117
    <!-- skip javadoc for now - FIXME fix java 8 javadoc errors -->
    <maven.javadoc.skip>true</maven.javadoc.skip>

Benoit Lavenier's avatar
Benoit Lavenier committed
118
    <!-- distribution management -->
Benoit Lavenier's avatar
Benoit Lavenier committed
119
120
    <projectId>${project.artifactId}</projectId>
    <site.server>eis-public-reports</site.server>
Benoit Lavenier's avatar
fix doc    
Benoit Lavenier committed
121
122
123
    <site.host>doc.e-is.pro</site.host>
    <site.path>/var/www/doc.e-is.pro/duniter4j</site.path>
    <site.repository>scpexe://${site.host}${site.path}</site.repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
124
125
126
127
    <release.server>eis-nexus-deploy</release.server>
    <release.repository>http://nexus.e-is.pro/nexus/content/repositories/duniter4j-releases</release.repository>
    <snapshot.server>eis-nexus-deploy</snapshot.server>
    <snapshot.repository>http://nexus.e-is.pro/nexus/content/repositories/duniter4j-snapshots</snapshot.repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
128

129
    <assembly.skip>false</assembly.skip>
Benoit Lavenier's avatar
Benoit Lavenier committed
130
131
132

    <!-- to deploy with scpexe for maven 3 -->
    <wagonSshVersion>2.12</wagonSshVersion>
133
134
135
136
  </properties>

  <licenses>
    <license>
137
138
      <name>General Public License (GPL) v3</name>
      <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
139
140
141
142
      <distribution>repo</distribution>
    </license>
  </licenses>

143
  <modules>
Benoit Lavenier's avatar
Benoit Lavenier committed
144
145
    <module>duniter4j-core-shared</module>
    <module>duniter4j-core-client</module>
Benoit Lavenier's avatar
Benoit Lavenier committed
146
    <module>duniter4j-client</module>
147
148
  </modules>

149
  <scm>
150
    <url>https://git.duniter.org/clients/java/duniter4j.git</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
151
152
    <connection>scm:git:git@git.duniter.org:clients/java/duniter4j.git</connection>
    <developerConnection>scm:git:git@git.duniter.org:clients/java/duniter4j.git</developerConnection>
153
    <tag>duniter4j-1.2.2</tag>
Benoit Lavenier's avatar
Benoit Lavenier committed
154
  </scm>
155

Benoit Lavenier's avatar
Benoit Lavenier committed
156
  <issueManagement>
157
158
    <system>GitLab</system>
    <url>https://git.duniter.org/clients/java/duniter4j/issues</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
159
160
  </issueManagement>

161
162
163
164
165
166
167
168
169
170
171
172
173
174
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>${log4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
175
        <artifactId>slf4j-log4j12</artifactId>
176
177
178
179
180
181
182
183
184
185
186
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.1</version>
187
      </dependency>
188
189
190
      <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>stringtemplate</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
191
192
193
194
195
196
197
198
199
200
201
202
        <version>${stringtemplate.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.antlr</groupId>
            <artifactId>stringtemplate</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
203
      </dependency>
204
205
206
207
208
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
209
210
211
212
213
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.5</version>
      </dependency>
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4.7</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-collections4</artifactId>
        <version>4.0</version>
      </dependency>
      <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.8.3</version>
      </dependency>
229
230
231
232
233
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-config</artifactId>
        <version>${nuitonConfigVersion}</version>
      </dependency>
234
235
236
237
238
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-version</artifactId>
        <version>${nuitonVersionVersion}</version>
      </dependency>
239
240
241
242
243
      <dependency>
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>nuiton-i18n</artifactId>
        <version>${nuitonI18nVersion}</version>
      </dependency>
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.3.3</version>
      </dependency>
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpmime</artifactId>
        <version>4.3.3</version>
      </dependency>
      <dependency>
        <groupId>commons-net</groupId>
        <artifactId>commons-net</artifactId>
        <version>3.3</version>
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>
264
265
266
267
268
      <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.1</version>
      </dependency>
269

Benoit Lavenier's avatar
Benoit Lavenier committed
270
271
272
273
274
      <dependency>
        <groupId>dnl.utils</groupId>
        <artifactId>j-text-utils</artifactId>
        <version>${jTextUtilsVersion}</version>
      </dependency>
275
276
277
278
279
280
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
        <scope>provided</scope>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
281

282
        <!-- NaCL lib -->
283
284
285
      <dependency>
        <groupId>org.abstractj.kalium</groupId>
        <artifactId>kalium</artifactId>
286
        <version>${kalium.version}</version>
287
      </dependency>
ArnaudCerisier's avatar
ArnaudCerisier committed
288
289
290
291
292
293
294
      <!-- jnr ffi -->
      <dependency>
        <groupId>com.github.jnr</groupId>
        <artifactId>jnr-ffi</artifactId>
        <version>${jnr-ffi.version}</version>
      </dependency>

295
296
297
298
299
300
      <!-- scrypt lib -->
      <dependency>
        <groupId>com.lambdaworks</groupId>
        <artifactId>scrypt</artifactId>
        <version>${scrypt.version}</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
301
302
303
304
305
306
307
308
309
310
311
      <!-- JNA (need for OS shutdown hook) -->
      <dependency>
        <groupId>net.java.dev.jna</groupId>
        <artifactId>jna</artifactId>
        <version>${jna.version}</version>
      </dependency>
      <dependency>
        <groupId>net.java.dev.jna</groupId>
        <artifactId>jna-platform</artifactId>
        <version>${jna.version}</version>
      </dependency>
312
313
314
315

      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
316
        <version>${jackson.version}</version>
317
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
318
319
320
321
322
323
324
325
326
327
328
329

      <!-- WebSocket -->
      <dependency>
        <groupId>org.glassfish.tyrus</groupId>
        <artifactId>tyrus-client</artifactId>
        <version>${tyrus.version}</version>
      </dependency>
      <dependency>
        <groupId>org.glassfish.tyrus</groupId>
        <artifactId>tyrus-container-grizzly-client</artifactId>
        <version>${tyrus.version}</version>
      </dependency>
330
331
332
333
334
335
336
337
338
339
      <dependency>
        <groupId>org.glassfish.tyrus</groupId>
        <artifactId>tyrus-server</artifactId>
        <version>${tyrus.version}</version>
      </dependency>
      <dependency>
        <groupId>org.glassfish.tyrus</groupId>
        <artifactId>tyrus-container-grizzly-server</artifactId>
        <version>${tyrus.version}</version>
      </dependency>
340
341
342
343
344
345
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
346
347
348
349
350
351
352

        <plugin>
          <groupId>org.nuiton.i18n</groupId>
          <artifactId>i18n-maven-plugin</artifactId>
          <version>${nuitonI18nVersion}</version>
        </plugin>

353
354
355
356
357
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>${jetty.version}</version>
          <configuration>
358

359
360
361
362
363
364
365
366
367
368
369
370
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.7</version>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
371
372
          <version>1.5.0</version>

373
374
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
375
376
377
378
379
380
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>${findbugsPluginVersion}</version>
        </plugin>

381
382
383
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
384
          <version>${licensePluginVersion}</version>
385
386
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
387
388
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
389
          <version>${enforcerPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
390
391
        </plugin>

392
393
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
394
          <version>${sourcePluginVersion}</version>
395
396
397
398
        </plugin>

        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
399
          <version>2.10</version>
400
401
402
403
        </plugin>

        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
404
          <version>2.8.2</version>
405
406
407
408
        </plugin>

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
409
          <version>${releasePluginVersion}</version>
410
411
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
412
413
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
414
          <version>3.0.0</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
415
416
        </plugin>

417
418
419
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>wagon-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
420
          <version>${wagonPluginVersion}</version>
421
422
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
423

Benoit Lavenier's avatar
Benoit Lavenier committed
424
        <plugin>
Benoit Lavenier's avatar
Benoit Lavenier committed
425
426
427
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>${versionsPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
428
          <configuration>
Benoit Lavenier's avatar
Benoit Lavenier committed
429
            <generateBackupPoms>false</generateBackupPoms>
Benoit Lavenier's avatar
Benoit Lavenier committed
430
431
432
          </configuration>
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
433
434
435
436
437
        <plugin>
          <artifactId>maven-changes-plugin</artifactId>
          <version>${changesPluginVersion}</version>
        </plugin>

438
439
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
440
          <version>3.2</version>
441
          <configuration>
442
443
            <source>${javaVersion}</source>
            <target>${javaVersion}</target>
444
445
446
447
448
449
450
451
            <optimize>true</optimize>
            <debug>true</debug>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
452
          <!-- <version>2.6</version> -->
453
454
455
456
          <configuration>
            <escapeString>\</escapeString>
          </configuration>
        </plugin>
457

458
459
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
460
          <version>${jarPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
461
          <inherited>true</inherited>
462
463
          <configuration>
            <archive>
Benoit Lavenier's avatar
Benoit Lavenier committed
464
465
              <!-- cela fait bugger le chargement des service via ServiceLoader donc on desactive -->
              <!--index>true</index -->
466
467
468
469
              <manifest>
                <!-- This is need to override the option version, in configuration classes -->
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
470
                <!-- fr.duniter.cmd.Main class, configured in sub-modules -->
Benoit Lavenier's avatar
Benoit Lavenier committed
471
                <mainClass>${maven.jar.main.class}</mainClass>
472
              </manifest>
Benoit Lavenier's avatar
Benoit Lavenier committed
473
474
475
              <manifestEntries>
                <url>${project.url}</url>
              </manifestEntries>
476
477
            </archive>
          </configuration>
478
479
480
481
482
483
484
        </plugin>

        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.3</version>
        </plugin>

485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.8</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant</artifactId>
              <version>1.8.2</version>
            </dependency>
            <dependency>
              <groupId>ant</groupId>
              <artifactId>ant-optional</artifactId>
              <version>1.5.2</version>
            </dependency>
            <dependency>
              <groupId>ant-contrib</groupId>
              <artifactId>ant-contrib</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
502
              <version>1.0b3</version>
503
504
505
506
507
508
509
510
511
512
              <exclusions>
                <exclusion>
                  <groupId>ant</groupId>
                  <artifactId>ant</artifactId>
                </exclusion>
              </exclusions>
            </dependency>
          </dependencies>
        </plugin>

513
514
      </plugins>
    </pluginManagement>
Benoit Lavenier's avatar
Benoit Lavenier committed
515
516

    <plugins>
Benoit Lavenier's avatar
Benoit Lavenier committed
517

Benoit Lavenier's avatar
Benoit Lavenier committed
518
519
520
521
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
522
            <id>enforce-project-files</id>
Benoit Lavenier's avatar
Benoit Lavenier committed
523
524
525
            <goals>
              <goal>enforce</goal>
            </goals>
Benoit Lavenier's avatar
Benoit Lavenier committed
526
            <phase>validate</phase>
Benoit Lavenier's avatar
Benoit Lavenier committed
527
528
            <configuration>
              <rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
529
530
531
532
533
                <requireFilesExist>
                  <files>
                    <file>LICENSE.txt</file>
                  </files>
                </requireFilesExist>
Benoit Lavenier's avatar
Benoit Lavenier committed
534
              </rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
535
536
537
538
              <ignoreCache>true</ignoreCache>
              <failFast>true</failFast>
              <fail>true</fail>

Benoit Lavenier's avatar
Benoit Lavenier committed
539
540
            </configuration>
          </execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577

          <execution>
            <id>enforce-javaVersion</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <phase>validate</phase>
            <configuration>
              <rules>
                <requireProperty>
                  <property>javaVersion</property>
                  <message>"javaVersion property must be specified."</message>
                  <regex>1\.6|1\.7|1\.8$</regex>
                  <regexMessage>"javaVersion property can not be empty and must be 1.6 or 1.7 or 1.8."</regexMessage>
                </requireProperty>
              </rules>
              <ignoreCache>true</ignoreCache>
              <failFast>true</failFast>
              <fail>true</fail>
            </configuration>
          </execution>

          <execution>
            <id>enforce-java-versions</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <phase>validate</phase>
            <configuration>
              <rules>
                <requireJavaVersion>
                  <version>${javaVersion}</version>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>

Benoit Lavenier's avatar
Benoit Lavenier committed
578
579
580
        </executions>
      </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
      <!-- site -->
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>${sitePluginVersion}</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.doxia</groupId>
            <artifactId>doxia-module-markdown</artifactId>
            <version>${markdownPluginVersion}</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-config-maven-plugin</artifactId>
        <version>${nuitonConfigVersion}</version>
      </plugin>

      <plugin>
        <groupId>org.nuiton</groupId>
        <artifactId>helper-maven-plugin</artifactId>
        <version>${helperPluginVersion}</version>
        <configuration>
          <!-- avoid error on hibernate-maven-plugin IFR version-->
          <failIfNotSafe>false</failIfNotSafe>
        </configuration>
      </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
610
611
    </plugins>

Benoit Lavenier's avatar
Benoit Lavenier committed
612
613
614
615
616
617
618
619
620
621
622
623
624
625
    <!-- Enabling the use of scpexe with maven 3.0 -->
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh-external</artifactId>
        <version>${wagonSshVersion}</version>
      </extension>
      <!-- Enabling the use of scp/sftp:// with maven 3.0 -->
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>${wagonSshVersion}</version>
      </extension>
    </extensions>
626
  </build>
627

628
629
630
  <!-- Repositories needed to find the dependencies -->
  <repositories>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
631
632
      <id>duniter4j-public-group</id>
      <url>http://nexus.e-is.pro/nexus/content/groups/duniter4j</url>
633
634
635
636
637
638
639
640
641
642
      <snapshots>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </releases>
    </repository>
  </repositories>
643
644
645

  <pluginRepositories>
    <pluginRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
646
647
648
649
650
651
652
653
654
655
      <id>duniter4j-public-group</id>
      <url>http://nexus.e-is.pro/nexus/content/groups/duniter4j</url>
      <snapshots>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </releases>
656
657
658
659
660
    </pluginRepository>
  </pluginRepositories>

  <distributionManagement>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
661
662
      <id>${release.server}</id>
      <url>${release.repository}</url>
663
664
    </repository>
    <snapshotRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
665
666
      <id>${snapshot.server}</id>
      <url>${snapshot.repository}</url>
667
    </snapshotRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
668
    <site>
Benoit Lavenier's avatar
Benoit Lavenier committed
669
670
      <id>${site.server}</id>
      <url>${site.repository}</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
671
    </site>
672
673
  </distributionManagement>

674
  <profiles>
Benoit Lavenier's avatar
Benoit Lavenier committed
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714

    <!-- use this profile to run the main class -->
    <profile>
      <id>run</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <defaultGoal>package</defaultGoal>
        <plugins>
          <plugin>
            <artifactId>maven-enforcer-plugin</artifactId>
            <executions>
              <execution>
                <id>check-run</id>
                <goals>
                  <goal>enforce</goal>
                </goals>
                <phase>initialize</phase>
                <configuration>
                  <rules>
                    <requireProperty>
                      <property>maven.jar.main.class</property>
                      <message>Could not find the "maven.jar.main.class"
                        required property, use
                        -Dmaven.jar.main.class=your.main.class.fqn
                      </message>
                    </requireProperty>
                  </rules>
                  <ignoreCache>true</ignoreCache>
                  <failFast>true</failFast>
                  <fail>true</fail>
                </configuration>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
715
            <version>${execPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
            <executions>
              <execution>
                <id>run</id>
                <goals>
                  <goal>java</goal>
                </goals>
                <phase>compile</phase>
                <configuration>
                  <mainClass>${exec.mainClass}</mainClass>
                  <classpathScope>${exec.classpathScope}</classpathScope>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>

      <properties>
        <exec.mainClass>${maven.jar.main.class}</exec.mainClass>
        <exec.classpathScope>runtime</exec.classpathScope>
Benoit Lavenier's avatar
Benoit Lavenier committed
736
        <duniter4j.log.file>${project.build.directory}/exec.log</duniter4j.log.file>
Benoit Lavenier's avatar
Benoit Lavenier committed
737
738
739
      </properties>
    </profile>

740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
    <!-- perform only on a release stage when using the maven-release-plugin -->
    <profile>
      <id>license-profile</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <defaultGoal>generate-resources</defaultGoal>
        <plugins>
          <!-- add license and third-party files to build -->
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-licenses</id>
                <goals>
                  <goal>update-project-license</goal>
                  <goal>add-third-party</goal>
                </goals>
                <configuration>
                  <licenseMerges>
                    <licenseMerge>
                      The Apache Software License, Version 2.0|Apache License, Version 2.0|Apache License V2.0|Apache 2|ASF
                      2.0|apache-2.0|Apache
                      Public License 2.0
                    </licenseMerge>
                    <licenseMerge>BSD License|BSD license|BSD</licenseMerge>
                    <licenseMerge>MIT License|MIT license|MIT</licenseMerge>
                    <licenseMerge>
                      Lesser General Public License (LPGL) v 2.1|GNU Lesser General Public License, 2.1|LGPL 2.1
                    </licenseMerge>
                    <licenseMerge>
                      Lesser General Public License (LPGL)|GNU Lesser General Public License|GNU LESSER GENERAL PUBLIC LICENSE|LGPL|lgpl
                    </licenseMerge>
Benoit Lavenier's avatar
Benoit Lavenier committed
778
779
780
                    <licenseMerge>
                      Lesser General Public License (LPGL) version 3.0|GNU General Lesser Public License (LGPL) version 3.0|LGPL_v3|lgpl_v3
                    </licenseMerge>
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
                    <licenseMerge>
                      COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0|Common Development and Distribution License (CDDL)
                      v1.0
                    </licenseMerge>
                    <licenseMerge>Indiana University Extreme! Lab Software License, vesion 1.1.1|Indiana University Extreme! Lab Software License</licenseMerge>
                  </licenseMerges>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- This profile update license stuff with new goal update-file-header -->
    <profile>
      <id>update-file-header</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <defaultGoal>process-resources</defaultGoal>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>update-file-header</id>
                <goals>
                  <goal>update-file-header</goal>
                </goals>
                <configuration>
                  <addSvnKeyWords>false</addSvnKeyWords>
                  <excludes>
819
                    <exclude>**/*.json</exclude>
820
821
822
                    <exclude>**/*.properties</exclude>
                    <exclude>**/*.xml</exclude>
                    <exclude>**/*.sh</exclude>
823
824
825
                    <exclude>**/site/**/*.*</exclude>
                    <exclude>**/misc/**/*.*</exclude>
                    <exclude>**/es-home/**/*.*</exclude>
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
                  </excludes>
                </configuration>
                <phase>process-resources</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>reporting</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <reporting>
        <plugins>
          <plugin>
            <artifactId>maven-project-info-reports-plugin</artifactId>
            <version>${projectInfoReportsPluginVersion}</version>
            <reportSets>
              <reportSet>
                <reports>
                  <report>project-team</report>
                  <report>mailing-list</report>
Benoit Lavenier's avatar
Benoit Lavenier committed
855
                  <!--<report>cim</report>-->
856
857
858
                  <report>issue-tracking</report>
                  <report>license</report>
                  <report>scm</report>
Benoit Lavenier's avatar
Benoit Lavenier committed
859
                  <report>dependency-info</report>
860
861
862
863
864
865
866
867
868
869
870
871
872
873
                  <report>dependencies</report>
                  <report>dependency-convergence</report>
                  <report>plugin-management</report>
                  <report>plugins</report>
                  <report>dependency-management</report>
                  <report>summary</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changelog-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
874
875
876
877
878
879
880
881
882
883
884
            <version>${changelogPluginVersion}</version>
          </plugin>

          <plugin>
            <artifactId>maven-jxr-plugin</artifactId>
            <version>${jrxPluginVersion}</version>
          </plugin>

          <plugin>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>${surefirePluginVersion}</version>
885
886
887
888
889
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changes-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
890
            <version>${changesPluginVersion}</version>
891
892
893
894
895
            <configuration>
              <aggregated>true</aggregated>
              <escapeHTML>false</escapeHTML>
              <feedType>rss_2.0</feedType>
              <issueLinkTemplatePerSystem>
896
                <default>https://git.duniter.org/clients/java/duniter4j/issues/%ISSUE%</default>
897
898
899
900
901
902
903
              </issueLinkTemplatePerSystem>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
904
            <version>${versionsPluginVersion}</version>
905
906
907
908
909
910
911
912
913
914
915
916
917
            <reportSets>
              <reportSet>
                <reports>
                  <report>dependency-updates-report</report>
                  <report>plugin-updates-report</report>
                  <report>property-updates-report</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>

          <plugin>
            <groupId>org.nuiton</groupId>
Benoit Lavenier's avatar
Benoit Lavenier committed
918
919
            <artifactId>nuiton-config-maven-plugin</artifactId>
            <version>${nuitonConfigVersion}</version>
920
921
922
923
            <inherited>false</inherited>
            <reportSets>
              <reportSet>
                <reports>
Benoit Lavenier's avatar
Benoit Lavenier committed
924
                  <report>aggregate-report</report>
925
926
927
928
                </reports>
              </reportSet>
            </reportSets>
            <configuration>
Benoit Lavenier's avatar
Benoit Lavenier committed
929
930
              <include>duniter4j</include>
              <i18nBundleName>duniter4j-client-i18n</i18nBundleName>
931
932
933
934
935
936
937
938
939
              <verbose>true</verbose>
              <outputEncoding>UTF-8</outputEncoding>
            </configuration>
          </plugin>
        </plugins>
      </reporting>

    </profile>
  </profiles>
940
</project>