pom.xml 31.7 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.13-SNAPSHOT</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 -->
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>

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

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

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
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>
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>HEAD</tag>
Benoit Lavenier's avatar
Benoit Lavenier committed
154
  </scm>
155

156
  <issueManagement>
157 158
    <system>GitLab</system>
    <url>https://git.duniter.org/clients/java/duniter4j/issues</url>
159 160
  </issueManagement>

161 162 163 164 165 166 167 168 169 170 171 172
  <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>
173 174 175 176 177
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
178 179
      <dependency>
        <groupId>org.slf4j</groupId>
180
        <artifactId>slf4j-log4j12</artifactId>
181 182 183 184 185 186 187 188 189 190 191
        <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>
192
      </dependency>
193 194 195
      <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>stringtemplate</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
196 197 198 199 200 201 202 203 204 205 206 207
        <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>
208
      </dependency>
209 210 211 212 213
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
214 215 216 217 218
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.5</version>
      </dependency>
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
      <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>
234 235 236 237
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-config</artifactId>
        <version>${nuitonConfigVersion}</version>
238 239 240 241 242 243
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
244
      </dependency>
245 246 247 248
      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-version</artifactId>
        <version>${nuitonVersionVersion}</version>
249 250 251 252 253 254
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
255
      </dependency>
256 257 258 259
      <dependency>
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>nuiton-i18n</artifactId>
        <version>${nuitonI18nVersion}</version>
260 261 262 263 264 265
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
266
      </dependency>
267 268 269
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
270
        <version>4.5.6</version>
271 272 273 274 275 276
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
      </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>
293 294 295 296 297
      <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.1</version>
      </dependency>
298

Benoit Lavenier's avatar
Benoit Lavenier committed
299 300 301 302 303
      <dependency>
        <groupId>dnl.utils</groupId>
        <artifactId>j-text-utils</artifactId>
        <version>${jTextUtilsVersion}</version>
      </dependency>
304 305 306 307 308 309
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
        <scope>provided</scope>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
310

311
        <!-- NaCL lib -->
312 313 314
      <dependency>
        <groupId>org.abstractj.kalium</groupId>
        <artifactId>kalium</artifactId>
315
        <version>${kalium.version}</version>
316
      </dependency>
317 318 319 320 321 322 323
      <!-- jnr ffi -->
      <dependency>
        <groupId>com.github.jnr</groupId>
        <artifactId>jnr-ffi</artifactId>
        <version>${jnr-ffi.version}</version>
      </dependency>

324 325 326 327 328 329
      <!-- scrypt lib -->
      <dependency>
        <groupId>com.lambdaworks</groupId>
        <artifactId>scrypt</artifactId>
        <version>${scrypt.version}</version>
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
330 331 332 333 334 335 336 337 338 339 340
      <!-- 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>
341 342 343 344

      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
345
        <version>${jackson.version}</version>
346
      </dependency>
Benoit Lavenier's avatar
Benoit Lavenier committed
347 348 349 350 351 352 353 354 355 356 357 358

      <!-- 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>
359 360 361 362 363 364 365 366 367 368
      <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>
369 370 371 372 373 374
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
375 376 377 378 379 380 381

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

382 383 384 385 386
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>${jetty.version}</version>
          <configuration>
387

388 389 390 391 392 393 394 395 396 397 398 399
          </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>
400 401
          <version>1.5.0</version>

402 403
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
404 405 406 407 408 409
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>${findbugsPluginVersion}</version>
        </plugin>

410 411 412
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
413
          <version>${licensePluginVersion}</version>
414 415
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
416 417
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
418
          <version>${enforcerPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
419 420
        </plugin>

421 422
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
423
          <version>${sourcePluginVersion}</version>
424 425 426 427
        </plugin>

        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
428
          <version>2.10</version>
429 430 431 432
        </plugin>

        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
433
          <version>2.8.2</version>
434 435 436 437
        </plugin>

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
438
          <version>${releasePluginVersion}</version>
439 440
        </plugin>

441 442
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
443
          <version>3.0.0</version>
444 445
        </plugin>

446 447 448
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>wagon-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
449
          <version>${wagonPluginVersion}</version>
450 451
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
452

Benoit Lavenier's avatar
Benoit Lavenier committed
453
        <plugin>
Benoit Lavenier's avatar
Benoit Lavenier committed
454 455 456
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>${versionsPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
457
          <configuration>
Benoit Lavenier's avatar
Benoit Lavenier committed
458
            <generateBackupPoms>false</generateBackupPoms>
Benoit Lavenier's avatar
Benoit Lavenier committed
459 460 461
          </configuration>
        </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
462 463 464 465 466
        <plugin>
          <artifactId>maven-changes-plugin</artifactId>
          <version>${changesPluginVersion}</version>
        </plugin>

467 468
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
469
          <version>3.2</version>
470
          <configuration>
471 472
            <source>${javaVersion}</source>
            <target>${javaVersion}</target>
473 474 475 476 477 478 479 480
            <optimize>true</optimize>
            <debug>true</debug>
            <encoding>${project.build.sourceEncoding}</encoding>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
481
          <!-- <version>2.6</version> -->
482 483 484 485
          <configuration>
            <escapeString>\</escapeString>
          </configuration>
        </plugin>
486

487 488
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
489
          <version>${jarPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
490
          <inherited>true</inherited>
491 492
          <configuration>
            <archive>
Benoit Lavenier's avatar
Benoit Lavenier committed
493 494
              <!-- cela fait bugger le chargement des service via ServiceLoader donc on desactive -->
              <!--index>true</index -->
495 496 497 498
              <manifest>
                <!-- This is need to override the option version, in configuration classes -->
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
499
                <!-- fr.duniter.cmd.Main class, configured in sub-modules -->
Benoit Lavenier's avatar
Benoit Lavenier committed
500
                <mainClass>${maven.jar.main.class}</mainClass>
501
              </manifest>
Benoit Lavenier's avatar
Benoit Lavenier committed
502 503 504
              <manifestEntries>
                <url>${project.url}</url>
              </manifestEntries>
505 506
            </archive>
          </configuration>
507 508 509 510 511 512 513
        </plugin>

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

514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
        <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
531
              <version>1.0b3</version>
532 533 534 535 536 537 538 539 540 541
              <exclusions>
                <exclusion>
                  <groupId>ant</groupId>
                  <artifactId>ant</artifactId>
                </exclusion>
              </exclusions>
            </dependency>
          </dependencies>
        </plugin>

542 543
      </plugins>
    </pluginManagement>
Benoit Lavenier's avatar
Benoit Lavenier committed
544 545

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

Benoit Lavenier's avatar
Benoit Lavenier committed
547 548 549 550
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
551
            <id>enforce-project-files</id>
Benoit Lavenier's avatar
Benoit Lavenier committed
552 553 554
            <goals>
              <goal>enforce</goal>
            </goals>
Benoit Lavenier's avatar
Benoit Lavenier committed
555
            <phase>validate</phase>
Benoit Lavenier's avatar
Benoit Lavenier committed
556 557
            <configuration>
              <rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
558 559 560 561 562
                <requireFilesExist>
                  <files>
                    <file>LICENSE.txt</file>
                  </files>
                </requireFilesExist>
Benoit Lavenier's avatar
Benoit Lavenier committed
563
              </rules>
Benoit Lavenier's avatar
Benoit Lavenier committed
564 565 566 567
              <ignoreCache>true</ignoreCache>
              <failFast>true</failFast>
              <fail>true</fail>

Benoit Lavenier's avatar
Benoit Lavenier committed
568 569
            </configuration>
          </execution>
Benoit Lavenier's avatar
Benoit Lavenier committed
570 571 572 573 574 575 576 577 578 579 580 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

          <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
607 608 609
        </executions>
      </plugin>

Benoit Lavenier's avatar
Benoit Lavenier committed
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638
      <!-- 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
639 640
    </plugins>

Benoit Lavenier's avatar
Benoit Lavenier committed
641 642 643 644 645 646 647 648 649 650 651 652 653 654
    <!-- 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>
655
  </build>
656

657 658 659
  <!-- Repositories needed to find the dependencies -->
  <repositories>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
660 661
      <id>duniter4j-public-group</id>
      <url>http://nexus.e-is.pro/nexus/content/groups/duniter4j</url>
662 663 664 665 666 667 668 669 670 671
      <snapshots>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>fail</checksumPolicy>
      </releases>
    </repository>
  </repositories>
672 673 674

  <pluginRepositories>
    <pluginRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
675 676 677 678 679 680 681 682 683 684
      <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>
685 686 687 688 689
    </pluginRepository>
  </pluginRepositories>

  <distributionManagement>
    <repository>
Benoit Lavenier's avatar
Benoit Lavenier committed
690 691
      <id>${release.server}</id>
      <url>${release.repository}</url>
692 693
    </repository>
    <snapshotRepository>
Benoit Lavenier's avatar
Benoit Lavenier committed
694 695
      <id>${snapshot.server}</id>
      <url>${snapshot.repository}</url>
696
    </snapshotRepository>
697
    <site>
Benoit Lavenier's avatar
Benoit Lavenier committed
698 699
      <id>${site.server}</id>
      <url>${site.repository}</url>
700
    </site>
701 702
  </distributionManagement>

703
  <profiles>
Benoit Lavenier's avatar
Benoit Lavenier committed
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743

    <!-- 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
744
            <version>${execPluginVersion}</version>
Benoit Lavenier's avatar
Benoit Lavenier committed
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
            <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
765
        <duniter4j.log.file>${project.build.directory}/exec.log</duniter4j.log.file>
Benoit Lavenier's avatar
Benoit Lavenier committed
766 767 768
      </properties>
    </profile>

769 770 771 772 773 774 775 776 777 778 779 780 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
    <!-- 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
807 808 809
                    <licenseMerge>
                      Lesser General Public License (LPGL) version 3.0|GNU General Lesser Public License (LGPL) version 3.0|LGPL_v3|lgpl_v3
                    </licenseMerge>
810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847
                    <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>
848
                    <exclude>**/*.json</exclude>
849 850 851
                    <exclude>**/*.properties</exclude>
                    <exclude>**/*.xml</exclude>
                    <exclude>**/*.sh</exclude>
852 853 854
                    <exclude>**/site/**/*.*</exclude>
                    <exclude>**/misc/**/*.*</exclude>
                    <exclude>**/es-home/**/*.*</exclude>
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883
                  </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
884
                  <!--<report>cim</report>-->
885 886 887
                  <report>issue-tracking</report>
                  <report>license</report>
                  <report>scm</report>
Benoit Lavenier's avatar
Benoit Lavenier committed
888
                  <report>dependency-info</report>
889 890 891 892 893 894 895 896 897 898 899 900 901 902
                  <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
903 904 905 906 907 908 909 910 911 912 913
            <version>${changelogPluginVersion}</version>
          </plugin>

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

          <plugin>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>${surefirePluginVersion}</version>
914 915 916 917 918
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changes-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
919
            <version>${changesPluginVersion}</version>
920 921 922 923 924
            <configuration>
              <aggregated>true</aggregated>
              <escapeHTML>false</escapeHTML>
              <feedType>rss_2.0</feedType>
              <issueLinkTemplatePerSystem>
925
                <default>https://git.duniter.org/clients/java/duniter4j/issues/%ISSUE%</default>
926 927 928 929 930 931 932
              </issueLinkTemplatePerSystem>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
Benoit Lavenier's avatar
Benoit Lavenier committed
933
            <version>${versionsPluginVersion}</version>
934 935 936 937 938 939 940 941 942 943 944 945 946
            <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
947 948
            <artifactId>nuiton-config-maven-plugin</artifactId>
            <version>${nuitonConfigVersion}</version>
949 950 951 952
            <inherited>false</inherited>
            <reportSets>
              <reportSet>
                <reports>
Benoit Lavenier's avatar
Benoit Lavenier committed
953
                  <report>aggregate-report</report>
954 955 956 957
                </reports>
              </reportSet>
            </reportSets>
            <configuration>
Benoit Lavenier's avatar
Benoit Lavenier committed
958 959
              <include>duniter4j</include>
              <i18nBundleName>duniter4j-client-i18n</i18nBundleName>
960 961 962 963 964 965 966 967 968
              <verbose>true</verbose>
              <outputEncoding>UTF-8</outputEncoding>
            </configuration>
          </plugin>
        </plugins>
      </reporting>

    </profile>
  </profiles>
969
</project>