<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>
	<artifactId>appng-scheduler</artifactId>
	<version>1.14.0</version>
	<name>Scheduler</name>
	<description>Scheduling using Quartz Scheduler</description>
	<url>https://www.appng.org</url>

	<parent>
		<groupId>org.appng</groupId>
		<artifactId>appng-application-parent</artifactId>
		<version>1.23.0</version>
	</parent>

	<properties>
		<appNG.version>${project.parent.version}</appNG.version>
		<projectId>SCHED</projectId>
		<hsqlPort>9001</hsqlPort>
		<urlAlias>scheduler</urlAlias>
		<displayName>Scheduler</displayName>
		<longDescription><![CDATA[An application for scheduling using Quartz]]></longDescription>
		<application.homeFolder>application-home</application.homeFolder>
	</properties>

	<scm>
		<connection>scm:git:ssh://git@github.com:appNG/appng-scheduler.git</connection>
		<developerConnection>scm:git:ssh://git@github.com:appNG/appng-scheduler.git</developerConnection>
		<url>https://github.com/appNG/appng-scheduler</url>
	</scm>
	<licenses>
		<license>
			<name>Apache 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>

	<issueManagement>
		<system>JIRA</system>
		<url>https://appng.org/jira/projects/SCHED/</url>
	</issueManagement>
	<developers>
		<developer>
			<id>mherlitzius</id>
			<name>Matthias Herlitzius</name>
			<email>matthias.herlitzius at appng.org</email>
			<organization>aiticon GmbH</organization>
			<organizationUrl>http://www.aiticon.com</organizationUrl>
		</developer>
		<developer>
			<id>madness-inc</id>
			<name>Matthias Müller</name>
			<email>matthias.mueller at appng.org</email>
			<organization>aiticon GmbH</organization>
			<organizationUrl>http://www.aiticon.com</organizationUrl>
		</developer>
		<developer>
			<id>stuemke</id>
			<name>Claus Stümke</name>
			<email>claus.stuemke at appng.org</email>
			<organization>aiticon GmbH</organization>
			<organizationUrl>http://www.aiticon.com</organizationUrl>
		</developer>
	</developers>


	<profiles>
		<profile>
			<id>maven-central</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</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.7</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>sonatype</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>false</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
			<distributionManagement>
				<repository>
					<id>sonatype</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
		</profile>
	</profiles>



	<build>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
				<filtering>true</filtering>
			</testResource>
		</testResources>
		<plugins>
			<plugin>
				<groupId>org.openapitools</groupId>
				<artifactId>openapi-generator-maven-plugin</artifactId>
				<version>5.1.1</version>
				<executions>
					<execution>
						<id>rest-api</id>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<inputSpec>${basedir}/src/main/resources/scheduler-api.yaml</inputSpec>
					<!--templateDirectory>${project.basedir}/openapi/templates</templateDirectory -->
					<generatorName>java</generatorName>
					<generateApis>true</generateApis>
					<generateModels>true</generateModels>
					<generateSupportingFiles>true</generateSupportingFiles>
					<configOptions>
						<useAbstractionForFiles>true</useAbstractionForFiles>
						<apiPackage>org.appng.scheduler.openapi</apiPackage>
						<invokerPackage>org.appng.scheduler.openapi.invoke</invokerPackage>
						<modelPackage>org.appng.scheduler.openapi.model</modelPackage>
						<library>resttemplate</library>
						<java8>true</java8>
						<dateLibrary>java8</dateLibrary>
					</configOptions>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>3.0.0</version>
				<configuration>
					<sources>
						<source>target/generated-sources/constants</source>
						<source>target/generated-sources/openapi/src/main/java</source>
					</sources>
				</configuration>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
					</execution>
				</executions>

			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-docs</id>
						<goals>
							<goal>jar</goal>
						</goals>
						<phase>package</phase>
					</execution>
				</executions>
				<configuration>
					<additionalparam>-Xdoclint:all,-Xdoclint:-html</additionalparam>
					<sourcepath>src/main/java:target/generated-sources/constants</sourcepath>
					<sourcepath>target/generated-sources/openapi/src/main/java</sourcepath>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
						<phase>verify</phase>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.appng</groupId>
				<artifactId>appng-maven-plugin</artifactId>
				<version>${appNG.version}</version>
				<executions>
					<execution>
						<id>applicationConstants</id>
						<goals>
							<goal>generateApplicationConstants</goal>
						</goals>
						<phase>generate-sources</phase>
						<configuration>
							<filePath>${application.homeFolder}/application.xml</filePath>
							<targetClass>org.appng.application.scheduler.PropertyConstants</targetClass>
							<outfolder>${application.constants.generatedOutputFolder}</outfolder>
						</configuration>
					</execution>
					<execution>
						<id>messageConstants</id>
						<goals>
							<goal>generateMessageConstants</goal>
						</goals>
						<configuration>
							<filePath>${application.homeFolder}/dictionary/messages-scheduler.properties</filePath>
							<targetClass>org.appng.application.scheduler.MessageConstants</targetClass>
							<outfolder>${application.constants.generatedOutputFolder}</outfolder>
						</configuration>
					</execution>
				</executions>
				<dependencies>
					<!-- application xsd may change. use project version -->
					<dependency>
						<groupId>org.appng</groupId>
						<artifactId>appng-xmlapi</artifactId>
						<version>${appNG.version}</version>
					</dependency>
					<dependency>
						<groupId>javax.xml.bind</groupId>
						<artifactId>jaxb-api</artifactId>
						<version>2.3.1</version>
					</dependency>
					<dependency>
						<groupId>commons-io</groupId>
						<artifactId>commons-io</artifactId>
						<version>2.6</version>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>org.appng</groupId>
			<artifactId>appng-core</artifactId>
		</dependency>
		<dependency>
			<groupId>org.appng</groupId>
			<artifactId>appng-testsupport</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>8.0.26</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
		</dependency>
		<dependency>
			<groupId>io.swagger</groupId>
			<artifactId>swagger-annotations</artifactId>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.appng</groupId>
				<artifactId>appng-application-bom</artifactId>
				<type>pom</type>
				<scope>import</scope>
				<version>${appNG.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

</project>
