<?xml version="1.0" encoding="UTF-8"?>
<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>

  <groupId>au.net.zeus</groupId>
  <artifactId>jgdms</artifactId>
  <version>3.1.0</version>
  <packaging>pom</packaging>

  <name>JGDMS Project</name>
  <description>Infrastructure for providing secured micro services, that are dynamically discoverable and searchable over ipv6 networks.</description>
  <url>https://${github.repo.basename}.github.io/JGDMS/</url>
  <inceptionYear>2016</inceptionYear>
  <licenses>
    <license>
      <name>Apache Software License 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <!--<mailingLists>
        <mailingList>
            <name>JGDMS User List</name>
            <archive>river-dev@apache.org</archive>
        </mailingList>
        <mailingList>
            <name>JGDMS Developer List</name>
            <archive>river-dev@apache.org</archive>
        </mailingList>
        <mailingList>
            <name>JGDMS Commits List</name>
	        <archive>river-commits@apache.org</archive>
        </mailingList>
    </mailingLists>-->
  <developers>
    <developer>
      <id>peter_firmstone</id>
      <name>Peter Firmstone</name>
      <email />
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+10</timezone>
    </developer>
    <!-- FILL IN THE REST OF YOUR DEVELOPERS -->
  </developers>
  <contributors>
    <contributor>
      <name>Dan Rollo</name>
      <timezone>-4</timezone>
    </contributor>
  </contributors>

  <modules>
    <module>jgdms-collections</module>
    <module>jgdms-pref-class-loader</module>
    <module>jgdms-activation</module>
    <module>jgdms-platform</module>
    <module>jgdms-jeri</module>
    <module>jgdms-discovery-providers</module>
    <module>jgdms-url-integrity</module>
    <module>service-starter</module>
    <module>jgdms-destroy</module>
    <module>jgdms-resources</module>
    <module>jgdms-iiop</module>
    <module>jgdms-jrmp</module>
    <module>jgdms-rmi-tls</module>
    <module>jgdms-lib</module>
    <module>jgdms-lib-dl</module>
    <module>jgdms-ui-factory</module>
    <module>jgdms-osgi-services</module>
    <module>jini-2.1-compat</module>
    <module>jsk-platform</module>
    <module>jsk-lib</module>
    <module>services/outrigger</module>
    <module>services/reggie</module>
    <module>services/mahalo</module>
    <module>services/mercury</module>
    <module>services/norm</module>
    <module>services/group</module>
    <module>services/fiddler</module>
    <module>tools</module>
    <module>phoenix-activation</module>
    <module>groovy-config</module>
    <module>dist</module>
    <module>browser</module>
    <module>extra</module>
    <!--CVE-2015-6420 vulnerable <module>velocity-config</module>-->
  </modules>

  <scm>
      <connection>scm:git:git://github.com/${github.repo.basename}/JGDMS.git</connection>
      <developerConnection>scm:git:git@github.com:${github.repo.basename}/JGDMS.git</developerConnection>
      <url>https://github.com/${github.repo.basename}/JGDMS</url>
      <tag>jgdms-3.1.0</tag>
  </scm>
  <distributionManagement>
    <!--<snapshotRepository>
      <id>local-snapshots</id>
      <layout>default</layout>
      <url>file:\C:\Users\Peter\Documents\repo</url>
    </snapshotRepository>-->
      <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      </snapshotRepository>
      <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      </repository>
    <site>
      <id>${project.artifactId}-site</id>
      <url>scm:git:git@github.com:${github.repo.basename}/JGDMS.git</url>
    </site>
  </distributionManagement>

  <properties>
    <github.repo.basename>pfirmstone</github.repo.basename>
    <groovy.version>2.3.0</groovy.version>
    <gmaven.version>1.4</gmaven.version>
    <gmavenProviderSelection>2.0</gmavenProviderSelection>
    <junit.version>4.8.2</junit.version>
    <tychoExtrasVersion>1.2.0</tychoExtrasVersion>
    <tychoVersion>1.2.0</tychoVersion>
    <maven.Jarsigner.version>1.4</maven.Jarsigner.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>

  <!--
    <distributionManagement>
        <repository>
            <id></id>
            <name></name>
            <url>scp://</url>
        </repository>
    </distributionManagement>

    <pluginRepositories>
        <pluginRepository>
            <id></id>
            <url></url>
        </pluginRepository>
    </pluginRepositories>
-->
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>${groovy.version}</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <version>${gmaven.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
          <configuration>
              <!-- For releasing from Windows platforms, ignores problems with file handles -->
            <failOnError>false</failOnError>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.3</version>
          <configuration>
              <useDefaultManifestFile>true</useDefaultManifestFile>
          </configuration>
        </plugin>
        <plugin>
            <groupId>org.owasp</groupId>
            <artifactId>dependency-check-maven</artifactId>
            <version>1.4.4.1</version>
            <configuration>
                <cveValidForHours>12</cveValidForHours>
                <failBuildOnCVSS>4</failBuildOnCVSS>
            </configuration>
        </plugin>
        <plugin>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>bnd-maven-plugin</artifactId>
            <version>3.2.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.13</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>2.13</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.1</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.gmaven</groupId>
          <artifactId>gmaven-plugin</artifactId>
          <version>${gmaven.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>tidy-maven-plugin</artifactId>
          <version>1.0.0</version>
        </plugin>
        <!-- https://wiki.eclipse.org/Tycho/Pack200 -->
        <plugin>
            <groupId>org.eclipse.tycho.extras</groupId>
            <artifactId>tycho-pack200a-plugin</artifactId>
            <version>${tychoExtrasVersion}</version>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jarsigner-plugin</artifactId>
            <version>${maven.Jarsigner.version}</version>
        </plugin>
        <plugin>
            <groupId>org.eclipse.tycho.extras</groupId>
            <artifactId>tycho-pack200b-plugin</artifactId>
            <version>${tychoExtrasVersion}</version>
        </plugin>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-p2-plugin</artifactId>
            <version>${tychoVersion}</version>
        </plugin>
        <!-- reporting plugins : begin -->
        <plugin>
          <artifactId>maven-surefire-report-plugin</artifactId>
          <version>2.20</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>3.0.5</version>
        </plugin>
        <plugin>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <plugin>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.7.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-scm-publish-plugin</artifactId>
          <version>3.0.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.10.4</version>
          <configuration>
            <links>
              <link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
            </links>
            <detectLinks>true</detectLinks>
            <breakiterator>true</breakiterator>
            <top><![CDATA[<h2>JGDMS Project ${project.version} API Documentation</h2>]]></top>
            <footer><![CDATA[<i>Copyright &copy;, multiple authors.</i>]]></footer>
          </configuration>
        </plugin>
        <!-- reporting plugins : end -->
        <!-- release plugins : begin -->
        <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.5.3</version>
            <dependencies>
                <dependency>
                    <groupId>org.apache.maven.scm</groupId>
                    <artifactId>maven-scm-provider-gitexe</artifactId>
                    <!-- Latest version known to work. Newer versions (e.g. 1.11.1) may produce error like this:
                    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project jgdms: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare: java.lang.NoSuchMethodError: org.apache.maven.scm.ScmTagParameters.isSign()Z
                    -->
                    <version>1.9.5</version>
                </dependency>
            </dependencies>
        </plugin>
        <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <version>2.8.2</version>
        </plugin>
        <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
        </plugin>
          <!-- release plugins : end -->
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <optimize>true</optimize>
          <encoding>UTF-8</encoding>
          <meminitial>128m</meminitial>
          <maxmem>1024m</maxmem>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.5</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>tidy-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>validate</id>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- for publishing maven site to gh-pages : begin -->
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
          <!-- we use maven-scm-publish-plugin to deploy the site to gh-pages branch, so skip maven-site-plugin deploy. -->
          <skipDeploy>true</skipDeploy>
        </configuration>
        <executions>
          <execution>
            <!-- ensure 'staging' site tree exists before attempt to deploy site. -->
            <id>stage-for-scm-publish</id>
            <phase>post-site</phase>
            <goals>
              <goal>stage</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-scm-publish-plugin</artifactId>
        <configuration>
          <!-- This is important for git, gh-pages. -->
          <scmBranch>gh-pages</scmBranch>
        </configuration>
        <executions>
          <execution>
            <id>scm-publish</id>
            <phase>site-deploy</phase>
            <goals>
              <goal>publish-scm</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- for publishing maven site to gh-pages : end -->
      <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <executions>
              <execution>
                  <id>default-deploy</id>
                  <phase>deploy</phase>
                  <goals>
                      <goal>deploy</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>
      <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <configuration>
              <autoVersionSubmodules>true</autoVersionSubmodules>
              <localCheckout>true</localCheckout>
              <pushChanges>false</pushChanges>
              <mavenExecutorId>forked-path</mavenExecutorId>
              <arguments>-Dgpg.passphrase=${cli.gpg.passphrase}</arguments>
          </configuration>
      </plugin>
      <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
          </configuration>
      </plugin>
    </plugins>
  </build>

  <!--<issueManagement>
    <system>JIRA</system>
    <url>https://issues.apache.org/jira/browse/RIVER</url>
  </issueManagement>

  <scm>
    <connection>scm:http://svn.apache.org/repos/asf/river/jtsk/trunk</connection>
    <developerConnection>scm:https://svn.apache.org/repos/asf/river/jtsk/trunk</developerConnection>
    <url>http://svn.apache.org/repos/asf/river/jtsk/trunk</url>
  </scm>

  <ciManagement>
    <system>hudson</system>
    <url>https://builds.apache.org/view/M-R/view/River/</url>
  </ciManagement>-->
  <reporting>
    <excludeDefaults>true</excludeDefaults>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>
      <plugin><!-- findbugs report will link to source docs if jxr report is included. -->
        <artifactId>maven-jxr-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>dependency-updates-report</report>
              <report>plugin-updates-report</report>
              <report>property-updates-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <profiles>
      <!-- GPG Signature on release -->
      <profile>
          <id>release-sign-artifacts</id>
          <activation>
              <property>
                  <name>performRelease</name>
                  <value>true</value>
              </property>
          </activation>
          <build>
              <plugins>
                  <plugin>
                      <artifactId>maven-gpg-plugin</artifactId>
                      <version>1.6</version>
                      <executions>
                          <execution>
                              <id>sign-artifacts</id>
                              <phase>verify</phase>
                              <goals>
                                  <goal>sign</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
              </plugins>
          </build>
      </profile>
      <!-- Disable maven-scm-publish-plugin during "release:perform".
      Need to publish doc manually and/or @todo investigate using site-maven-plugin https://github.github.com/maven-plugins/site-plugin/
       -->
      <profile>
          <id>release-scm-site-publish</id>
          <activation>
              <property>
                  <name>performRelease</name>
                  <value>true</value>
              </property>
          </activation>
          <build>
              <plugins>
                  <plugin>
                      <artifactId>maven-scm-publish-plugin</artifactId>
                      <executions>
                          <execution>
                              <id>scm-publish</id> <!-- must be same identifier defined in <build><plugins> section -->
                              <phase>none</phase> <!-- this disables plugin -->
                          </execution>
                      </executions>
                  </plugin>
              </plugins>
          </build>
      </profile>
  </profiles>
</project>
