All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.maven.com.inteligr8.alfresco.aps-public-rest-api.pom.xml Maven / Gradle / Ivy

<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>aps-public-rest-api</artifactId>
	<version>3.0.2</version>

	<name>Alfresco Process Services ReST API for Java</name>
	<description>An APS API library for building REST API clients that support both the CXF and Jersey frameworks</description>
	<url>https://bitbucket.org/inteligr8/aps-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/aps-public-rest-api.git</connection>
		<developerConnection>scm:git:[email protected]:inteligr8/aps-public-rest-api.git</developerConnection>
		<url>https://bitbucket.org/inteligr8/aps-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>[email protected]</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.release>11</maven.compiler.release>
		<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
		
		<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>jakarta.ws.rs</groupId>
			<artifactId>jakarta.ws.rs-api</artifactId>
			<version>3.1.0</version>
		</dependency>
		<dependency>
			<groupId>jakarta.activation</groupId>
			<artifactId>jakarta.activation-api</artifactId>
			<version>2.1.3</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>

	<profiles>
		<!-- Implement when descriptor is available -->
		<profile>
			<id>openapi-codegen</id>
		</profile>
		<!-- RAML seems legacy, but sometimes works -->
		<profile>
			<id>raml-codegen</id>
			<properties>
				<aps.ramlUrl>${aps.baseUrl}/activiti-app/raml/activiti.raml</aps.ramlUrl>
				<basePackage>com.inteligr8.alfresco.activiti</basePackage>
			</properties>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-clean-plugin</artifactId>
						<version>3.1.0</version>
						<configuration>
							<filesets>
								<fileset>
									<directory>src/gen/java</directory>
									<includes>
										<include>**/*</include>
									</includes>
								</fileset>
							</filesets>
						</configuration>
					</plugin>
					<plugin>
						<groupId>com.googlecode.maven-download-plugin</groupId>
						<artifactId>download-maven-plugin</artifactId>
						<version>1.6.3</version>
						<executions>
							<execution>
								<id>download-aps-raml</id>
								<phase>generate-sources</phase>
								<goals>
									<goal>wget</goal>
								</goals>
								<configuration>
									<url>${aps.ramlUrl}</url>
									<outputDirectory>${project.build.directory}/downloads</outputDirectory>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>com.inteligr8</groupId>
						<artifactId>regex-maven-plugin</artifactId>
						<version>1.0.5</version>
						<executions>
							<execution>
								<id>fix-displayName</id>
								<phase>generate-sources</phase>
								<goals>
									<goal>replace-file</goal>
								</goals>
								<configuration>
									<filesets>
										<fileset>
											<directory>${project.build.directory}/downloads</directory>
											<includes>
												<include>activiti.raml</include>
											</includes>
											<outputDirectory>${project.build.directory}/regexed</outputDirectory>
										</fileset>
									</filesets>
									<regexes>
										<regex>
											<pattern>(^|[^A-Za-z])task-id([^A-Za-z]|$)</pattern>
											<replacement>$1taskId$2</replacement>
										</regex>
										<regex>
											<pattern>^([ ]*)displayName</pattern>
											<replacement>#$1 displayName</replacement>
										</regex>
									</regexes>
								</configuration>
							</execution>
							<execution>
								<id>fix-dupclasses</id>
								<phase>process-sources</phase>
								<goals>
									<goal>replace-file</goal>
								</goals>
								<configuration>
									<filesets>
										<fileset>
											<directory>${project.build.directory}/ramlgen/java</directory>
											<includes>
												<include>**/*.java</include>
											</includes>
											<outputDirectory>src/main/java</outputDirectory>
										</fileset>
									</filesets>
									<regexes>
										<regex>
											<pattern>([A-Z][A-Za-z0-9]*)__[0-9]+</pattern>
											<replacement>$1</replacement>
										</regex>
									</regexes>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.raml.jaxrs</groupId>
						<artifactId>raml-to-jaxrs-maven-plugin</artifactId>
						<version>3.0.7</version>
						<executions>
							<execution>
								<id>raml-codegen</id>
								<phase>generate-sources</phase>
								<goals>
									<goal>generate</goal>
								</goals>
								<configuration>
									<resourcePackage>${basePackage}.resource</resourcePackage>
									<modelPackage>${basePackage}.model</modelPackage>
									<supportPackage>${basePackage}.support</supportPackage>
									<generateTypesWith>jackson</generateTypesWith>
									<ramlFile>${project.build.directory}/regexed/activiti.raml</ramlFile>
									<outputDirectory>${basedir}/src/gen/java</outputDirectory>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<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>
	
	<pluginRepositories>
		<pluginRepository>
			<id>mulesoft-releases</id>
			<url>https://repository.mulesoft.org/releases</url>
		</pluginRepository>
	</pluginRepositories>
</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy