<?xml version="1.0"?>
<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>
  <properties>
    <vtk.maven.repo.id>vtk-maven-repo</vtk.maven.repo.id>
    <vtk.maven.repo>file://@MAVEN_LOCAL_REPOSITORY@</vtk.maven.repo>
  </properties>
  <groupId>@MAVEN_VTK_GROUP_ID@</groupId>
  <artifactId>vtk@MAVEN_VTK_ARTIFACT_SUFFIX@</artifactId>
  <version>@VTK_VERSION@@MAVEN_VTK_SNAPSHOT@</version>
  <packaging>pom</packaging>
  <name>VTK</name>
  <description>VTK java package</description>
  <url>https://gitlab.kitware.com/vtk/vtk</url>
  <organization>
    <name>Kitware Inc.</name>
    <url>https://www.kitware.com</url>
  </organization>
  <developers>
    <developer>
      <name>Vicente Bolea</name>
      <email>vicente.bolea@kitware.com</email>
      <organization>Kitware</organization>
      <organizationUrl>https://www.kitware.com</organizationUrl>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git@gitlab.kitware.com:vtk/vtk.git</connection>
    <developerConnection>scm:git:git@gitlab.kitware.com:vtk/vtk.git</developerConnection>
    <url>https://gitlab.kitware.com/vtk/vtk</url>
  </scm>
  <issueManagement>
    <system>GitLab</system>
    <url>https://gitlab.kitware.com/vtk/vtk/-/issues</url>
  </issueManagement>
  <licenses>
    <license>
      <name>BSD-3-Clause license</name>
      <url>http://en.wikipedia.org/wiki/BSD_licenses</url>
      <comments>
        VTK is an open-source toolkit licensed under the BSD license.

        Copyright (c) 1993-2008 Ken Martin, Will Schroeder, Bill Lorensen
        All rights reserved.

        Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

        Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
        Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
        Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      </comments>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <dependencies>
@MAVEN_DEPENDENCY_XML@
  </dependencies>
  <repositories>
@MAVEN_REPOSITORIES_XML@
  </repositories>
  <distributionManagement>
    <!-- Warning: Generating release artifacts is only meant to be used after
         a compilation of VTK across all the targeted platforms while overriding
         the following CMake properties:

         # Customize the Group ID
           -DMAVEN_VTK_GROUP_ID:STRING=org.vtk

         # This will be generated by CMake automatically but can be override
           -DMAVEN_LOCAL_NATIVE_NAME:STRING=Win32

         # List of all the MAVEN_LOCAL_NATIVE_NAME on each computer
           -DMAVEN_NATIVE_ARTIFACTS:STRING=Win32;Win64;Linux32;Linux64;OSX

         # Path where the local repo should be stored at least at the end
         # when Maven will be called
           -DMAVEN_LOCAL_REPOSITORY:STRING=${user.home}/vtk-maven-repos

         Each platform will generate an OS specific install directory but
         the generated pom.xml will remain the same on each computer which
         will ease the merge of those directory for a one step maven deploy.
     -->
    <repository>
      <id>${vtk.maven.repo.id}</id>
      <name>VTK Release Artifact Repository</name>
      <url>${vtk.maven.repo}</url>
    </repository>
    <snapshotRepository>
      <id>${vtk.maven.repo.id}</id>
      <name>VTK Snapshot Artifact Repository</name>
      <url>${vtk.maven.repo}</url>
    </snapshotRepository>
  </distributionManagement>
  <pluginRepositories>
    <pluginRepository>
      <id>sonatype-public-repository</id>
      <url>https://oss.sonatype.org/content/groups/public</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>3.4.1</version>
        <executions>
          <execution>
            <id>enforce-maven</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>3.2.5</version>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.4.0</version>
        <executions>
          <execution>
            <id>attach-vtk-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>vtk-@VTK_VERSION@.jar</file>
                  <type>jar</type>
                </artifact>
@MAVEN_NATIVE_ARTIFACT_XML@
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.3.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.6.3</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
            <configuration>
              <signer>bc</signer>
            </configuration>
          </execution>
        </executions>
      </plugin>
<!--
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <version>0.4.0</version>
        <extensions>true</extensions>
        <configuration>
          <publishingServerId>central</publishingServerId>
          <tokenAuth>true</tokenAuth>
        </configuration>
      </plugin>
-->
    </plugins>
  </build>
</project>
