<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<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>
  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>29</version>
  </parent>
  <groupId>com.kgs-software</groupId>
  <artifactId>chemistry-opencmis</artifactId>
  <version>1.2.3</version>
  <packaging>pom</packaging>
  <name>Chemistry OpenCMIS</name>
  <description>Chemistry OpenCMIS is an open source implementation of the OASIS CMIS specification.</description>
  <url>https://kgs-software.com/en/products#cmis</url>
  <inceptionYear>2009</inceptionYear>
  <organization>
    <name>KGS Software GmbH</name>
    <url>https://kgs-software.com/</url>
  </organization>
  <licenses>
    <license>
      <name>Apache 2</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <modules>
    <module>chemistry-opencmis-commons/chemistry-opencmis-commons-api</module>
    <module>chemistry-opencmis-commons/chemistry-opencmis-commons-impl</module>
    <module>chemistry-opencmis-client/chemistry-opencmis-client-api</module>
    <module>chemistry-opencmis-client/chemistry-opencmis-client-impl</module>
    <module>chemistry-opencmis-client/chemistry-opencmis-client-bindings</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-support</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-bindings</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-bindings-war</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-inmemory</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-fileshare</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-archetype</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype</module>
    <module>chemistry-opencmis-server/chemistry-opencmis-server-async</module>
    <module>chemistry-opencmis-bridge/chemistry-opencmis-bridge</module>
    <module>chemistry-opencmis-test/chemistry-opencmis-test-fit</module>
    <module>chemistry-opencmis-test/chemistry-opencmis-test-tck</module>
    <module>chemistry-opencmis-workbench/chemistry-opencmis-workbench</module>
    <module>chemistry-opencmis-osgi/chemistry-opencmis-osgi-client</module>
    <module>chemistry-opencmis-dist</module>
  </modules>
  <scm>
    <connection>scm:git:https://github.com/kgs-software/chemistry-opencmis.git</connection>
    <developerConnection>scm:git:https://github.com/kgs-software/chemistry-opencmis.git</developerConnection>
    <url>https://github.com/kgs-software/chemistry-opencmis</url>
  </scm>
  <issueManagement>
    <system>Jira</system>
    <url>https://kgs-software.atlassian.net/servicedesk/customer/portals</url>
  </issueManagement>
  <ciManagement>
    <system>GitHub Workflows</system>
    <url>https://github.com/kgs-software/chemistry-opencmis/tree/main/.github/workflows</url>
  </ciManagement>
  <distributionManagement>
    <repository>
      <id>${env.DISTRIBUTION_ID}</id>
      <url>${env.DISTRIBUTION_URL}</url>
    </repository>
    <snapshotRepository>
      <id>${env.DISTRIBUTION_SNAPSHOT_ID}</id>
      <url>${env.DISTRIBUTION_SNAPSHOT_URL}</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <felix.plugin.version>5.1.8</felix.plugin.version>
    <maven.compile.target>17</maven.compile.target>
    <apacheclient.version>4.5.14</apacheclient.version>
    <site.label>${project.version}</site.label>
    <maven.compile.source>17</maven.compile.source>
    <jacoco.version>0.8.8</jacoco.version>
    <surefire.version>3.1.2</surefire.version>
    <woodstox.version>6.5.0</woodstox.version>
    <okhttp.version>4.10.0</okhttp.version>
    <slf4j.version>1.7.36</slf4j.version>
    <failsafe.version>2.22.2</failsafe.version>
    <cxf.version>4.0.5</cxf.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <log4j.version>2.20.0</log4j.version>
    <junit.version>4.13.2</junit.version>
    <parentBasedir>${project.basedir}</parentBasedir>
    <osgi.version>5.0.0</osgi.version>
    <global.version>1.2.3</global.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${slf4j.version}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <extensions>
      <extension>
        <groupId>com.google.code.maven-svn-wagon</groupId>
        <artifactId>maven-svn-wagon</artifactId>
        <version>1.4</version>
      </extension>
    </extensions>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.antlr</groupId>
          <artifactId>maven-gunit-plugin</artifactId>
          <version>3.5.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${surefire.version}</version>
        </plugin>
        <plugin>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>${failsafe.version}</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>3.4.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.8</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>3.4.0</version>
          <configuration>
            <archive>
              <manifestEntries>
                <DisableIBMJAXWSEngine>true</DisableIBMJAXWSEngine>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-remote-resources-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-archetype-plugin</artifactId>
          <version>3.2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.5.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>3.2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.3.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>3.4.0</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>flatten-maven-plugin</artifactId>
          <version>1.5.0</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>create</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
          <revisionOnScmFailure>?</revisionOnScmFailure>
          <timestampFormat>{0,date,yyyy-MM-dd'T'HH:mm:ssZ}</timestampFormat>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <archiveClasses>true</archiveClasses>
          <attachClasses>true</attachClasses>
          <archive>
            <manifestEntries>
              <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
              <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
              <X-Apache-SVN-Revision>${buildNumber}</X-Apache-SVN-Revision>
              <Implementation-Title>${project.name}</Implementation-Title>
              <Implementation-Version>${project.version}</Implementation-Version>
              <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.11.0</version>
        <inherited>true</inherited>
        <configuration>
          <target>${maven.compile.target}</target>
          <source>${maven.compile.source}</source>
          <encoding>UTF-8</encoding>
          <fork>true</fork>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <inherited>true</inherited>
        <configuration>
          <includePom>true</includePom>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-remote-resources-plugin</artifactId>
        <configuration>
          <appendedResourcesDirectory>${parentBasedir}/src/main/appended-resources</appendedResourcesDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>maven-version-plugin</artifactId>
        <version>1.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>3.0.0</version>
        <configuration>
          <configLocation>src/main/resources/checkstyle.xml</configLocation>
          <suppressionsLocation>src/main/resources/suppressions.xml</suppressionsLocation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.9.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
              <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
              <X-Apache-SVN-Revision>${buildNumber}</X-Apache-SVN-Revision>
              <Implementation-Title>${project.name}</Implementation-Title>
              <Implementation-Version>${project.version}</Implementation-Version>
              <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
        <dependencies>
          <dependency>
            <groupId>com.google.code.maven-svn-wagon</groupId>
            <artifactId>maven-svn-wagon</artifactId>
            <version>1.4</version>
          </dependency>
        </dependencies>
        <configuration>
          <deployAtEnd>false</deployAtEnd>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-versions</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireJavaVersion>
                  <version>[17,)</version>
                </requireJavaVersion>
                <requireMavenVersion>
                  <version>[3.5,)</version>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.13</version>
        <configuration>
          <licenses>
            <license implementation="org.apache.rat.analysis.license.FullTextMatchingLicense">
              <licenseFamilyCategory>OASIS</licenseFamilyCategory>
              <licenseFamilyName>OASISOpen</licenseFamilyName>
              <notes />
              <fullText>.*OASIS Open.*</fullText>
            </license>
          </licenses>
          <licenseFamilies>
            <licenseFamily implementation="org.apache.rat.license.Apache20LicenseFamily" />
            <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
              <familyName>OASISOpen</familyName>
            </licenseFamily>
          </licenseFamilies>
          <excludes>
            <exclude>**/*.log</exclude>
            <exclude>**/*.json</exclude>
            <exclude>**/.recommenders/**/*</exclude>
            <exclude>**/.project</exclude>
            <exclude>/src/main/resources/META-INF/services/**/*</exclude>
            <exclude>/src/main/webapp/WEB-INF/classes/META-INF/**/*</exclude>
            <exclude>/src/main/assembly/client-with-dependencies-assembly-notice.txt</exclude>
            <exclude>/src/main/resources/archetype-resources/**/*</exclude>
            <exclude>/src/test/resources/projects/server/*</exclude>
            <exclude>/src/main/resources/META-INF/README-cmis-workbench.txt</exclude>
            <exclude>**/info.plist</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
          <tags>
            <tag>
              <name>cmis</name>
              <placement>a</placement>
              <head>CMIS:</head>
            </tag>
          </tags>
          <locale>en</locale>
          <encoding>utf-8</encoding>
          <source>17</source>
          <doclint>accessibility,html,reference,syntax</doclint>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>${surefire.version}</version>
        <configuration>
          <aggregate>true</aggregate>
          <reportsDirectories>
            <reportsDirectory>${project.build.directory}/surefire-reports/</reportsDirectory>
            <reportsDirectory>${project.build.directory}/failsafe-reports/</reportsDirectory>
          </reportsDirectories>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>3.3.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>3.0.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <reportSets>
          <reportSet>
            <id>aggregate</id>
            <reports>
              <report>aggregate</report>
            </reports>
          </reportSet>
        </reportSets>
        <inherited>false</inherited>
        <configuration>
          <doctitle>Apache Chemistry OpenCMIS ${project.version}</doctitle>
          <windowtitle>Apache Chemistry OpenCMIS ${project.version}</windowtitle>
          <sourcepath>${basedir}/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java:
                        ${basedir}/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java:
                        ${basedir}/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java:
                        ${basedir}/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java:
                        ${basedir}/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java:
                        ${basedir}/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java:
                        ${basedir}/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java:
                        ${basedir}/chemistry-opencmis-server/chemistry-opencmis-server-async/src/main/java:
                        ${basedir}/chemistry-opencmis-bridge/chemistry-opencmis-bridge/src/main/java:
                        ${basedir}/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java</sourcepath>
          <groups>
            <group>
              <title>OpenCMIS Client API</title>
              <packages>org.apache.chemistry.opencmis.client:org.apache.chemistry.opencmis.client.api:org.apache.chemistry.opencmis.client.util</packages>
            </group>
            <group>
              <title>OpenCMIS Commons API</title>
              <packages>org.apache.chemistry.opencmis.commons:org.apache.chemistry.opencmis.commons.*</packages>
            </group>
            <group>
              <title>OpenCMIS Bindings SPI</title>
              <packages>org.apache.chemistry.opencmis.client.bindings</packages>
            </group>
            <group>
              <title>OpenCMIS Server</title>
              <packages>org.apache.chemistry.opencmis.commons.server:org.apache.chemistry.opencmis.commons.impl.server:org.apache.chemistry.opencmis.server.support:org.apache.chemistry.opencmis.server.support.wrapper:org.apache.chemistry.opencmis.server.support.query:org.apache.chemistry.opencmis.server.filter:org.apache.chemistry.opencmis.server.shared</packages>
            </group>
            <group>
              <title>OpenCMIS Server (async)</title>
              <packages>org.apache.chemistry.opencmis.server.async</packages>
            </group>
            <group>
              <title>OpenCMIS Bridge</title>
              <packages>org.apache.chemistry.opencmis.bridge*</packages>
            </group>
            <group>
              <title>OpenCMIS TCK</title>
              <packages>org.apache.chemistry.opencmis.tck*</packages>
            </group>
          </groups>
          <sourceFileExcludes>
            <exclude>**/CmisQl*</exclude>
            <exclude>**/CmisQueryWalk*</exclude>
            <exclude>**/TextSearch*</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/*</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/dataobjects/**</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/json/**</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/jaxb/**</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/server/ObjectInfoImpl*</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/server/RenditionInfoImpl*</exclude>
            <exclude>org/apache/chemistry/opencmis/commons/impl/server/LinkInfoImp*</exclude>
            <exclude>org/apache/chemistry/opencmis/client/runtime/**</exclude>
            <exclude>org/apache/chemistry/opencmis/client/bindings/impl/**</exclude>
            <exclude>org/apache/chemistry/opencmis/client/bindings/cache/**</exclude>
            <exclude>org/apache/chemistry/opencmis/client/bindings/spi/**</exclude>
            <exclude>org/apache/chemistry/opencmis/server/impl/**</exclude>
            <exclude>org/apache/chemistry/opencmis/server/shared/**</exclude>
            <exclude>org/apache/chemistry/opencmis/server/support/filter/**</exclude>
            <exclude>org/apache/chemistry/opencmis/server/async/impl/**</exclude>
          </sourceFileExcludes>
          <tags>
            <tag>
              <name>cmis</name>
              <placement>a</placement>
              <head>CMIS:</head>
            </tag>
          </tags>
          <locale>en</locale>
          <encoding>utf-8</encoding>
          <source>17</source>
          <doclint>accessibility,html,reference,syntax</doclint>
          <additionalOptions>
            <additionalOption>--add-stylesheet ${parentBasedir}/src/main/javadoc/chemistry-javadoc.css</additionalOption>
          </additionalOptions>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  <profiles>
    <profile>
      <id>ossrh</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <gpgArguments>
                <arg>--pinentry-mode</arg>
                <arg>loopback</arg>
              </gpgArguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
