<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.uima</groupId>
  <artifactId>org.apache.uima.runtime</artifactId>
  <version>3.5.0</version>
  <packaging>pom</packaging>
  <name>Apache UIMA Eclipse: ${project.artifactId}</name>
  <description>UIMA Eclipse Plugin Feature that
    has the base UIMA runtime, referred to by other plugins that
    need UIMA framework code</description>
  <url>${uimaWebsiteUrl}</url>
  <dependencies>
    <dependency>
      <groupId>org.apache.uima</groupId>
      <artifactId>uimaj-ep-runtime</artifactId>
      <version>3.5.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>apache-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>artifacts-checksum-fix</id>
                <phase>verify</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <echo message="Generating checksums for p2content.xml" />
                    <property name="p2content-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2metadata.xml" />
                    <copy file="${project.build.directory}/p2content.xml" tofile="${p2content-path}" overwrite="true" verbose="true" />
                    <checksum file="${p2content-path}" format="MD5SUM" forceoverwrite="yes" fileext=".sha512" algorithm="SHA-512" />
                    <copy file="${p2content-path}.sha512" tofile="${project.build.directory}/p2content.xml.sha512" overwrite="true" verbose="true" />
                    <echo message="Generating checksums for p2artifacts.xml" />
                    <property name="p2artifacts-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2artifacts.xml" />
                    <copy file="${project.build.directory}/p2artifacts.xml" tofile="${p2artifacts-path}" overwrite="true" verbose="true" />
                    <checksum file="${p2artifacts-path}" format="MD5SUM" forceoverwrite="yes" fileext=".sha512" algorithm="SHA-512" />
                    <copy file="${p2artifacts-path}.sha512" tofile="${project.build.directory}/p2artifacts.xml.sha512" overwrite="true" verbose="true" />
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
