419 lines
13 KiB
XML
419 lines
13 KiB
XML
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.inteligr8.alfresco</groupId>
|
|
<artifactId>acs-public-rest-api</artifactId>
|
|
<version>3.0-SNAPSHOT-acs23</version>
|
|
|
|
<name>Alfresco Content Services ReST API for Java</name>
|
|
<description>A library for building ACS JAX-RS REST API clients</description>
|
|
<url>https://bitbucket.org/inteligr8/acs-public-rest-api</url>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name>
|
|
<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<scm>
|
|
<connection>scm:git:https://bitbucket.org/inteligr8/acs-public-rest-api.git</connection>
|
|
<developerConnection>scm:git:git@bitbucket.org:inteligr8/acs-public-rest-api.git</developerConnection>
|
|
<url>https://bitbucket.org/inteligr8/acs-public-rest-api</url>
|
|
</scm>
|
|
<organization>
|
|
<name>Inteligr8</name>
|
|
<url>https://www.inteligr8.com</url>
|
|
</organization>
|
|
<developers>
|
|
<developer>
|
|
<id>brian.long</id>
|
|
<name>Brian Long</name>
|
|
<email>brian@inteligr8.com</email>
|
|
<url>https://twitter.com/brianmlong</url>
|
|
</developer>
|
|
</developers>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
|
|
|
|
<swagger.basePackage>com.inteligr8.alfresco.acs</swagger.basePackage>
|
|
|
|
<alfresco.platform.version>23.2.0</alfresco.platform.version>
|
|
|
|
<jersey.version>3.1.8</jersey.version>
|
|
<cxf.version>4.0.2</cxf.version>
|
|
<jackson.version>2.17.2</jackson.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>1.6.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.2.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.activation</groupId>
|
|
<artifactId>jakarta.activation-api</artifactId>
|
|
<version>2.1.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>2.0.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.ws.rs</groupId>
|
|
<artifactId>jakarta.ws.rs-api</artifactId>
|
|
<version>3.1.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.xml.bind</groupId>
|
|
<artifactId>jakarta.xml.bind-api</artifactId>
|
|
<version>4.0.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
|
<version>${cxf.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.glassfish.jersey.media</groupId>
|
|
<artifactId>jersey-media-multipart</artifactId>
|
|
<version>${jersey.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>src/gen/java</directory>
|
|
<includes>
|
|
<include>com/inteligr8/alfresco/acs/**/*</include>
|
|
</includes>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.3.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>download-api-explorer</id>
|
|
<phase>generate-sources</phase>
|
|
<goals><goal>unpack</goal></goals>
|
|
<configuration>
|
|
<artifact>org.alfresco:api-explorer:${alfresco.platform.version}:war</artifact>
|
|
<includes>definitions/**/*</includes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.swagger.codegen.v3</groupId>
|
|
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
|
<version>3.0.61</version>
|
|
<configuration>
|
|
<language>jaxrs-cxf-client</language>
|
|
<configOptions>
|
|
<jakarta>true</jakarta>
|
|
</configOptions>
|
|
<output>${basedir}</output>
|
|
<apiPackage>${swagger.basePackage}.api</apiPackage>
|
|
<modelPackage>${swagger.basePackage}.model</modelPackage>
|
|
<invokerPackage>${swagger.basePackage}.invoker</invokerPackage>
|
|
<generateApiTests>false</generateApiTests>
|
|
<generateApiDocumentation>false</generateApiDocumentation>
|
|
<generateModelTests>false</generateModelTests>
|
|
<generateModelDocumentation>false</generateModelDocumentation>
|
|
</configuration>
|
|
<executions>
|
|
<!-- search before core, as ContentInfo is incorrect in search -->
|
|
<execution>
|
|
<id>swagger-search-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-search.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>swagger-core-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-core.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>swagger-workflow-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-workflow.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>swagger-auth-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-auth.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>swagger-discovery-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-discovery.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>swagger-model-codegen</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-model.yaml</inputSpec>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.inteligr8</groupId>
|
|
<artifactId>regex-maven-plugin</artifactId>
|
|
<version>1.0.5</version>
|
|
<executions>
|
|
<execution>
|
|
<id>fix-baseUrl</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>replace-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</directory>
|
|
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</outputDirectory>
|
|
</fileset>
|
|
</filesets>
|
|
<allowMultiLineMatch>true</allowMultiLineMatch>
|
|
<regexes>
|
|
<regex>
|
|
<pattern>import org\.apache\.cxf\.jaxrs\.ext\.multipart\.\*;.*</pattern>
|
|
<replacement></replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>public NodeEntry createNode\(@Multipart.*</pattern>
|
|
<previousPattern>/\*\*</previousPattern>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Core API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")</replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Workflow API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api/-default-/public/workflow/versions/1")</replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Authentication API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api/-default-/public/authentication/versions/1")</replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Discovery API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api")</replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Search API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api/-default-/public/search/versions/1")</replacement>
|
|
</regex>
|
|
<regex>
|
|
<pattern>(\*\*Model API\*\*[^@]*)@Path\("/"\)</pattern>
|
|
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")</replacement>
|
|
</regex>
|
|
</regexes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>add-ignoreUnknown</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>replace-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</directory>
|
|
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</outputDirectory>
|
|
</fileset>
|
|
</filesets>
|
|
<allowMultiLineMatch>true</allowMultiLineMatch>
|
|
<regexes>
|
|
<regex>
|
|
<pattern>(\npublic class [A-Za-z][A-Za-z0-9]* )</pattern>
|
|
<replacement>@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)$1</replacement>
|
|
</regex>
|
|
</regexes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>net.revelc.code</groupId>
|
|
<artifactId>impsort-maven-plugin</artifactId>
|
|
<version>1.6.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>organize-imports</id>
|
|
<phase>process-sources</phase>
|
|
<goals><goal>sort</goal></goals>
|
|
<configuration>
|
|
<directories>
|
|
<directory>${basedir}/src/gen/java</directory>
|
|
</directories>
|
|
<includes>
|
|
<include>**/*.java</include>
|
|
</includes>
|
|
<removeUnused>true</removeUnused>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-gensrc</id>
|
|
<phase>process-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/gen/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>ossrh-release</id>
|
|
<properties>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>source</id>
|
|
<phase>package</phase>
|
|
<goals><goal>jar-no-fork</goal></goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>3.3.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>javadoc</id>
|
|
<phase>package</phase>
|
|
<goals><goal>jar</goal></goals>
|
|
<configuration>
|
|
<show>public</show>
|
|
<additionalJOption>-Xdoclint:none</additionalJOption>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>sign</id>
|
|
<phase>verify</phase>
|
|
<goals><goal>sign</goal></goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonatype.plugins</groupId>
|
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
<version>1.6.13</version>
|
|
<configuration>
|
|
<serverId>ossrh</serverId>
|
|
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
|
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>ossrh-deploy</id>
|
|
<phase>deploy</phase>
|
|
<goals><goal>deploy</goal></goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>alfresco-public</id>
|
|
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>mulesoft-releases</id>
|
|
<url>https://repository.mulesoft.org/releases</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</project>
|