pom.xml 31.3 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>

4 5
  <groupId>org.duniter.cesium</groupId>
  <artifactId>cesium-plus-pod</artifactId>
6
  <version>1.3.4-SNAPSHOT</version>
7
  <packaging>pom</packaging>
8 9
  <name>Cesium+ pod</name>
  <description>Cesium+ pod :: An ElasticSearch cluster for Duniter network</description>
Benoit Lavenier's avatar
Benoit Lavenier committed
10

11
  <url>http://doc.e-is.pro/cesium-plus-pod/</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
12 13 14
  <inceptionYear>2014</inceptionYear>
  <organization>
    <name>Duniter Team</name>
15
    <url>http://www.duniter.org</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
16
  </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 -->
32
    <duniter4j.version>1.2.12</duniter4j.version>
33
    <log4j.version>1.2.17</log4j.version>
34
    <slf4j.version>1.7.6</slf4j.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
35
    <guava.version>22.0</guava.version>
36
    <xml-apis.version>2.0.2</xml-apis.version>
37
    <kalium.version>0.6.0_PR64</kalium.version>
38
    <jnr-ffi.version>2.1.8</jnr-ffi.version>
39
    <scrypt.version>1.4.0</scrypt.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
40
    <elasticsearch.version>2.4.6</elasticsearch.version>
41 42 43
    <jna.version>4.2.0</jna.version><!--4.3.0 could not build -->
    <tyrus.version>1.14</tyrus.version>
    <jackson.version>2.9.5</jackson.version>
44
    <stringtemplate.version>4.1</stringtemplate.version>
Benoit Lavenier's avatar
Benoit Lavenier committed
45 46
    <jTextUtilsVersion>0.3.3</jTextUtilsVersion>

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

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

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

    <!-- release config -->
    <autoVersionSubmodules>true</autoVersionSubmodules>
    <goals>deploy</goals>
66
    <arguments>-DperformFullRelease</arguments>
67
    <preparationGoals>verify</preparationGoals>
Benoit Lavenier's avatar
Benoit Lavenier committed
68

Benoit Lavenier's avatar
Benoit Lavenier committed
69 70 71
    <!-- Last JRE version to use -->
    <jreVersion>1.8.77</jreVersion>

Benoit Lavenier's avatar
Benoit Lavenier committed
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
    <!-- 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>
98 99 100 101 102 103 104 105 106 107 108

    <!-- 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>

109
    <!-- Could be overriding in modules -->
Benoit Lavenier's avatar
Benoit Lavenier committed
110
    <maven.jar.main.class />
111

112 113 114
    <!-- skip javadoc for now - FIXME fix java 8 javadoc errors -->
    <maven.javadoc.skip>true</maven.javadoc.skip>

115
    <!-- distribution management -->
Benoit Lavenier's avatar
Benoit Lavenier committed
116 117
    <projectId>${project.artifactId}</projectId>
    <site.server>eis-public-reports</site.server>
Benoit Lavenier's avatar
Benoit Lavenier committed
118
    <site.host>doc.e-is.pro</site.host>
119
    <site.path>/var/www/doc.e-is.pro/cesium-plus-pod</site.path>
Benoit Lavenier's avatar
Benoit Lavenier committed
120
    <site.repository>scpexe://${site.host}${site.path}</site.repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
121 122 123 124
    <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>
125

126
    <assembly.skip>false</assembly.skip>
Benoit Lavenier's avatar
Benoit Lavenier committed
127 128 129

    <!-- to deploy with scpexe for maven 3 -->
    <wagonSshVersion>2.12</wagonSshVersion>
130 131 132 133
  </properties>

  <licenses>
    <license>
134 135
      <name>Affero General Public License (GPL) v3</name>
      <url>http://www.gnu.org/licenses/agpl-3.0.txt</url>
136 137 138 139
      <distribution>repo</distribution>
    </license>
  </licenses>

140
  <modules>
141 142 143 144
    <module>cesium-plus-pod-core</module>
    <module>cesium-plus-pod-user</module>
    <module>cesium-plus-pod-subscription</module>
    <module>cesium-plus-pod-assembly</module>
145 146
  </modules>

147
  <scm>
148
    <url>https://git.duniter.org/clients/cesium-grp/cesium-plus-pod.git</url>
Benoit Lavenier's avatar
Benoit Lavenier committed
149 150
    <connection>scm:git:git@git.duniter.org:clients/cesium-grp/cesium-plus-pod.git</connection>
    <developerConnection>scm:git:git@git.duniter.org:clients/cesium-grp/cesium-plus-pod.git</developerConnection>
151
    <tag>HEAD</tag>
Benoit Lavenier's avatar
Benoit Lavenier committed
152
  </scm>
153

154
  <issueManagement>
155 156
    <system>Gitlab</system>
    <url>https://git.duniter.org/clients/cesium-grp/cesium-plus-pod/issues</url>
157 158
  </issueManagement>

159 160
  <dependencyManagement>
    <dependencies>
161 162 163
      <dependency>
        <groupId>org.duniter</groupId>
        <artifactId>duniter4j-core-client</artifactId>
164
        <version>${duniter4j.version}</version>
165 166
      </dependency>

167 168 169 170 171 172 173 174 175 176 177 178
      <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>
179
        <artifactId>slf4j-log4j12</artifactId>
180 181
        <version>${slf4j.version}</version>
      </dependency>
182 183 184 185 186
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
187 188 189 190 191 192 193 194 195
      <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>
196
      </dependency>
197 198
      <dependency>
        <groupId>org.antlr</groupId>
199
        <artifactId>ST4</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
200 201 202 203 204 205 206 207 208 209 210 211
        <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>
212
      </dependency>
213 214 215 216 217
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
218 219 220
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
221
        <version>2.6</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
222
      </dependency>
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
      <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>
238 239 240 241 242
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-config</artifactId>
        <version>${nuitonConfigVersion}</version>
      </dependency>
243 244 245 246 247
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-version</artifactId>
        <version>${nuitonVersionVersion}</version>
      </dependency>
248 249 250 251 252
      <dependency>
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>nuiton-i18n</artifactId>
        <version>${nuitonI18nVersion}</version>
      </dependency>
253 254 255
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
256
        <version>4.3.4</version>
257 258 259 260
      </dependency>
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpmime</artifactId>
261
        <version>4.3.4</version>
262 263 264 265
      </dependency>
      <dependency>
        <groupId>commons-net</groupId>
        <artifactId>commons-net</artifactId>
266
        <version>3.4</version>
267 268 269 270 271 272
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>
273 274 275 276 277
      <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.1</version>
      </dependency>
278

Benoit Lavenier's avatar
Benoit Lavenier committed
279 280 281 282 283 284
      <dependency>
        <groupId>dnl.utils</groupId>
        <artifactId>j-text-utils</artifactId>
        <version>${jTextUtilsVersion}</version>
      </dependency>

285
        <!-- NaCL lib -->
286 287 288
      <dependency>
        <groupId>org.abstractj.kalium</groupId>
        <artifactId>kalium</artifactId>
289
        <version>${kalium.version}</version>
290
      </dependency>
291 292 293 294 295 296 297
      <!-- jnr ffi -->
      <dependency>
        <groupId>com.github.jnr</groupId>
        <artifactId>jnr-ffi</artifactId>
        <version>${jnr-ffi.version}</version>
      </dependency>

298 299 300 301 302 303 304 305 306 307 308 309
      <!-- scrypt lib -->
      <dependency>
        <groupId>com.lambdaworks</groupId>
        <artifactId>scrypt</artifactId>
        <version>${scrypt.version}</version>
      </dependency>
      <!-- elastic search -->
      <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
        <version>${elasticsearch.version}</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
310 311 312 313 314 315 316 317 318 319 320
      <!-- 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>
321 322 323 324

      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
325
        <version>${jackson.version}</version>
326
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
327 328 329 330 331 332 333 334 335 336 337 338

      <!-- 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>
339 340 341 342 343 344 345 346 347 348
      <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>
349 350 351 352 353 354
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
355 356 357 358 359 360 361

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

362 363 364 365 366
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>${jetty.version}</version>
          <configuration>
367

368 369 370 371 372 373 374 375 376 377 378 379
          </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>
380 381
          <version>1.5.0</version>

382 383
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
384 385 386 387 388 389
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>${findbugsPluginVersion}</version>
        </plugin>

390 391 392
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
393
          <version>${licensePluginVersion}</version>
394 395
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
396 397
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
398
          <version>${enforcerPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
399 400
        </plugin>

401 402
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
403
          <version>${sourcePluginVersion}</version>
404 405 406 407
        </plugin>

        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
408
          <version>2.10</version>
409 410 411 412
        </plugin>

        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
413
          <version>2.8.2</version>
414 415 416 417
        </plugin>

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
418
          <version>${releasePluginVersion}</version>
419 420
        </plugin>

421 422
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
423
          <version>3.0.0</version>
424 425
        </plugin>

426 427 428
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>wagon-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
429
          <version>${wagonPluginVersion}</version>
430 431
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
432

Benoit Lavenier's avatar
Benoit Lavenier committed
433
        <plugin>
Benoit Lavenier's avatar
Benoit Lavenier committed
434 435 436
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>${versionsPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
437
          <configuration>
Benoit Lavenier's avatar
Benoit Lavenier committed
438
            <generateBackupPoms>false</generateBackupPoms>
Benoit Lavenier's avatar
Benoit Lavenier committed
439 440 441
          </configuration>
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
442 443 444 445 446
        <plugin>
          <artifactId>maven-changes-plugin</artifactId>
          <version>${changesPluginVersion}</version>
        </plugin>

447 448
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
449
          <version>3.2</version>
450
          <configuration>
451 452
            <source>${javaVersion}</source>
            <target>${javaVersion}</target>
453 454 455 456 457 458 459 460
            <optimize>true</optimize>
            <debug>true</debug>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
461
          <!-- <version>2.6</version> -->
462 463 464 465
          <configuration>
            <escapeString>\</escapeString>
          </configuration>
        </plugin>
466

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

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

494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
        <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
511
              <version>1.0b3</version>
512 513 514 515 516 517 518 519 520 521
              <exclusions>
                <exclusion>
                  <groupId>ant</groupId>
                  <artifactId>ant</artifactId>
                </exclusion>
              </exclusions>
            </dependency>
          </dependencies>
        </plugin>

522 523
      </plugins>
    </pluginManagement>
Benoit Lavenier's avatar
Benoit Lavenier committed
524 525

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

Benoit Lavenier's avatar
Benoit Lavenier committed
527 528 529 530
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
531
            <id>enforce-project-files</id>
Benoit Lavenier's avatar
Benoit Lavenier committed
532 533 534
            <goals>
              <goal>enforce</goal>
            </goals>
Benoit Lavenier's avatar
Benoit Lavenier committed
535
            <phase>validate</phase>
Benoit Lavenier's avatar
Benoit Lavenier committed
536 537
            <configuration>
              <rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
538 539 540 541 542
                <requireFilesExist>
                  <files>
                    <file>LICENSE.txt</file>
                  </files>
                </requireFilesExist>
Benoit Lavenier's avatar
Benoit Lavenier committed
543
              </rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
544 545 546 547
              <ignoreCache>true</ignoreCache>
              <failFast>true</failFast>
              <fail>true</fail>

Benoit Lavenier's avatar
Benoit Lavenier committed
548 549
            </configuration>
          </execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
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 578 579 580 581 582 583 584 585 586

          <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
587 588 589
        </executions>
      </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618
      <!-- 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
619 620
    </plugins>

Benoit Lavenier's avatar
Benoit Lavenier committed
621 622 623 624 625 626 627 628 629 630 631 632 633 634
    <!-- 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>
635
  </build>
636

637 638 639
  <!-- Repositories needed to find the dependencies -->
  <repositories>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
640 641
      <id>duniter4j-public-group</id>
      <url>http://nexus.e-is.pro/nexus/content/groups/duniter4j</url>
642 643 644 645 646 647 648 649 650 651
      <snapshots>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </releases>
    </repository>
  </repositories>
652 653 654

  <pluginRepositories>
    <pluginRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
655 656 657 658 659 660 661 662 663 664
      <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>
665 666 667 668 669
    </pluginRepository>
  </pluginRepositories>

  <distributionManagement>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
670 671
      <id>${release.server}</id>
      <url>${release.repository}</url>
672 673
    </repository>
    <snapshotRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
674 675
      <id>${snapshot.server}</id>
      <url>${snapshot.repository}</url>
676
    </snapshotRepository>
677
    <site>
Benoit Lavenier's avatar
Benoit Lavenier committed
678 679
      <id>${site.server}</id>
      <url>${site.repository}</url>
680
    </site>
681 682
  </distributionManagement>

683
  <profiles>
Benoit Lavenier's avatar
Benoit Lavenier committed
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 715 716 717 718 719 720 721 722 723

    <!-- 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
724
            <version>${execPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744
            <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
745
        <duniter4j.log.file>${project.build.directory}/exec.log</duniter4j.log.file>
Benoit Lavenier's avatar
Benoit Lavenier committed
746 747 748
      </properties>
    </profile>

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 778 779 780 781 782 783 784 785 786
    <!-- 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
787 788 789
                    <licenseMerge>
                      Lesser General Public License (LPGL) version 3.0|GNU General Lesser Public License (LGPL) version 3.0|LGPL_v3|lgpl_v3
                    </licenseMerge>
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 819 820 821 822 823 824 825 826 827
                    <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>
828
                    <exclude>**/*.json</exclude>
829 830 831
                    <exclude>**/*.properties</exclude>
                    <exclude>**/*.xml</exclude>
                    <exclude>**/*.sh</exclude>
832 833 834
                    <exclude>**/site/**/*.*</exclude>
                    <exclude>**/misc/**/*.*</exclude>
                    <exclude>**/es-home/**/*.*</exclude>
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863
                  </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
864
                  <!--<report>cim</report>-->
865 866 867
                  <report>issue-tracking</report>
                  <report>license</report>
                  <report>scm</report>
Benoit Lavenier's avatar
Benoit Lavenier committed
868
                  <report>dependency-info</report>
869 870 871 872 873 874 875 876 877 878 879 880 881 882
                  <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
883 884 885 886 887 888 889 890 891 892 893
            <version>${changelogPluginVersion}</version>
          </plugin>

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

          <plugin>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>${surefirePluginVersion}</version>
894 895 896 897 898
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changes-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
899
            <version>${changesPluginVersion}</version>
900 901 902 903 904
            <configuration>
              <aggregated>true</aggregated>
              <escapeHTML>false</escapeHTML>
              <feedType>rss_2.0</feedType>
              <issueLinkTemplatePerSystem>
Benoit Lavenier's avatar
Benoit Lavenier committed
905
                <default>https://github.com/duniter/duniter4j/issues/%ISSUE%</default>
906 907 908 909 910 911 912
              </issueLinkTemplatePerSystem>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
913
            <version>${versionsPluginVersion}</version>
914 915 916 917 918 919 920 921 922 923 924 925 926
            <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
927 928
            <artifactId>nuiton-config-maven-plugin</artifactId>
            <version>${nuitonConfigVersion}</version>
929 930 931 932
            <inherited>false</inherited>
            <reportSets>
              <reportSet>
                <reports>
Benoit Lavenier's avatar
Benoit Lavenier committed
933
                  <report>aggregate-report</report>
934 935 936 937
                </reports>
              </reportSet>
            </reportSets>
            <configuration>
938 939
              <include>cesium-plus-pod</include>
              <i18nBundleName>cesium-plus-pod-subscription-i18n</i18nBundleName>
940 941 942 943 944 945 946 947 948
              <verbose>true</verbose>
              <outputEncoding>UTF-8</outputEncoding>
            </configuration>
          </plugin>
        </plugins>
      </reporting>

    </profile>
  </profiles>
949
</project>