<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>
	<groupId>org.robotframework</groupId>
	<artifactId>jrobotremoteserver</artifactId>
	<version>4.1.1</version>
	<packaging>jar</packaging>
	<name>jrobotremoteserver</name>
	<description>Serves remote test libraries for Robot Framework that are implemented in Java.</description>
	<url>https://github.com/robotframework/jrobotremoteserver</url>

	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<developers>
		<developer>
			<name>Robot Framework Developers</name>
			<email>robotframework@gmail.com</email>
		</developer>
	</developers>

	<issueManagement>
		<system>GitHub Issues</system>
		<url>https://github.com/robotframework/jrobotremoteserver/issues</url>
	</issueManagement>

	<distributionManagement>
		<!-- Central Repository -->
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<scm>
		<connection>scm:git:git@github.com:robotframework/jrobotremoteserver.git</connection>
		<developerConnection>scm:git:git@github.com:robotframework/jrobotremoteserver.git</developerConnection>
		<url>git@github.com:robotframework/jrobotremoteserver.git</url>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>jakarta.servlet</groupId>
			<artifactId>jakarta.servlet-api</artifactId>
			<version>5.0.0</version>
		</dependency>
		<dependency>
			<groupId>com.evolvedbinary.thirdparty.org.apache.xmlrpc</groupId>
			<artifactId>xmlrpc-server</artifactId>
			<version>5.0.0</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-servlet</artifactId>
			<version>11.0.3</version>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
			<version>3.12.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-text</artifactId>
			<version>1.10.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.17.2</version>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-jcl</artifactId>
			<version>2.17.2</version>
		</dependency>
		<dependency>
			<groupId>org.robotframework</groupId>
			<artifactId>javalib-core</artifactId>
			<version>2.0.3</version>
		</dependency>
		<dependency>
			<groupId>xmlrpc</groupId>
			<artifactId>xmlrpc-client</artifactId>
			<version>3.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>7.5</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.2</version>
		</dependency>
		<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>tjws</artifactId>
			<version>3.15.3.Final</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.2.0</version>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</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>
				<version>3.3.0</version>
				<configuration>
					<descriptorRefs>
						<descriptorRef>jar-with-dependencies</descriptorRef>
					</descriptorRefs>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.2.1</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
				<configuration>
                    <release>11</release>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>3.0.0</version>
				<executions>
					<execution>
						<id>define-classpath</id>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<exportAntProperties>true</exportAntProperties>
							<target>
								<property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
								<property name="maven.test.classpath" refid="maven.test.classpath" />
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.robotframework</groupId>
				<artifactId>robotframework-maven-plugin</artifactId>
				<version>2.1.0</version>
				<executions>
					<execution>
						<id>FullDynamic</id>
						<goals>
							<goal>acceptance-test</goal>
						</goals>
						<configuration>
							<console>dotted</console>
							<excludes>
								<exclude>kwargs</exclude>
								<exclude>argsknown</exclude>
								<exclude>fatal</exclude>
								<exclude>todo</exclude>
							</excludes>
							<extraPathDirectories>
								<extraPathDirectory>target/jrobotremoteserver-${project.version}.jar</extraPathDirectory>
							</extraPathDirectories>
							<report>NONE</report>
							<log>NONE</log>
							<logLevel>TRACE:INFO</logLevel>
							<name>FullDynamic</name>
							<output>${project.build.directory}/robotframework-reports/output-FullDynamic.xml</output>
							<variables>
								<variable>LIBRARY:/FullDynamic</variable>
								<variable>maven.runtime.classpath:${maven.runtime.classpath}</variable>
								<variable>maven.test.classpath:${maven.test.classpath}</variable>
								<classpath />
							</variables>
							<externalRunner>
								<excludeDependencies>false</excludeDependencies>
							</externalRunner>
						</configuration>
					</execution>
					<execution>
						<id>MinDynamic</id>
						<goals>
							<goal>acceptance-test</goal>
						</goals>
						<configuration>
							<console>dotted</console>
							<excludes>
								<exclude>kwargs</exclude>
								<exclude>argsknown</exclude>
								<exclude>fatal</exclude>
								<exclude>todo</exclude>
							</excludes>
							<extraPathDirectories>
								<extraPathDirectory>target/jrobotremoteserver-${project.version}.jar</extraPathDirectory>
							</extraPathDirectories>
							<report>NONE</report>
							<log>NONE</log>
							<logLevel>TRACE:INFO</logLevel>
							<name>MinDynamic</name>
							<output>${project.build.directory}/robotframework-reports/output-MinDynamic.xml</output>
							<variables>
								<variable>LIBRARY:/MinDynamic</variable>
								<variable>maven.runtime.classpath:${maven.runtime.classpath}</variable>
								<variable>maven.test.classpath:${maven.test.classpath}</variable>
								<classpath />
							</variables>
							<externalRunner>
								<excludeDependencies>false</excludeDependencies>
							</externalRunner>
						</configuration>
					</execution>
					<execution>
						<id>Static</id>
						<goals>
							<goal>acceptance-test</goal>
						</goals>
						<configuration>
							<console>dotted</console>
							<excludes>
								<exclude>kwargs</exclude>
								<exclude>argsknown</exclude>
								<exclude>fatal</exclude>
								<exclude>todo</exclude>
							</excludes>
							<extraPathDirectories>
								<extraPathDirectory>target/jrobotremoteserver-${project.version}.jar</extraPathDirectory>
							</extraPathDirectories>
							<report>NONE</report>
							<log>NONE</log>
							<logLevel>TRACE:INFO</logLevel>
							<name>Static</name>
							<output>${project.build.directory}/robotframework-reports/output-Static.xml</output>
							<variables>
								<variable>LIBRARY:/Static</variable>
								<variable>maven.runtime.classpath:${maven.runtime.classpath}</variable>
								<variable>maven.test.classpath:${maven.test.classpath}</variable>
								<classpath />
							</variables>
							<externalRunner>
								<excludeDependencies>false</excludeDependencies>
							</externalRunner>
						</configuration>
					</execution>
					<execution>
						<id>MinDynamicKwargs</id>
						<goals>
							<goal>acceptance-test</goal>
						</goals>
						<configuration>
							<console>dotted</console>
							<includes>
								<include>kwargs</include>
							</includes>
							<extraPathDirectories>
								<extraPathDirectory>target/jrobotremoteserver-${project.version}.jar</extraPathDirectory>
							</extraPathDirectories>
							<report>NONE</report>
							<log>NONE</log>
							<logLevel>TRACE:INFO</logLevel>
							<name>MinDynamicKwargs</name>
							<output>${project.build.directory}/robotframework-reports/output-MinDynamicKwargs.xml</output>
							<variables>
								<variable>LIBRARY:/MinDynamicKwargs</variable>
								<variable>maven.runtime.classpath:${maven.runtime.classpath}</variable>
								<variable>maven.test.classpath:${maven.test.classpath}</variable>
								<classpath />
							</variables>
							<externalRunner>
								<excludeDependencies>false</excludeDependencies>
							</externalRunner>
						</configuration>
					</execution>
					<execution>
						<id>mergeResults</id>
						<phase>post-integration-test</phase>
						<goals>
							<goal>rebot</goal>
						</goals>
					</execution>
					<execution>
						<id>verifyResults</id>
						<goals>
							<goal>verify</goal>
						</goals>
						<configuration>
							<xunitFile>${project.build.directory}/robotframework-reports/rebot-xunit-results.xml</xunitFile>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>deploy</id>
			<build>
				<plugins>
					<!-- GPG plugin -->
					<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>
								<configuration>
									<!-- Prevent `gpg` from using pinentry programs -->
									<gpgArguments>
									    <arg>--pinentry-mode</arg>
									    <arg>loopback</arg>
									</gpgArguments>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.6.8</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
