<?xml version="1.0" ?>
<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<!-- ################################################ # Section 1: Project 
		information ################################################ -->
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>9</version>
	</parent>

	<groupId>com.github.leeyazhou</groupId>
	<artifactId>cobertura-reactor</artifactId>
	<version>2.1.2.RELEASE</version>
	<name>${project.artifactId}</name>
	<url>${url.prefix}/${path.in.reactor}</url>
	<description>Cobertura checks and reports on test coverage in your code.</description>
	<packaging>pom</packaging>
	<inceptionYear>2019</inceptionYear>

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<organization>
		<name>Cobertura</name>
		<url>https://github.com/leeyazhou/cobertura</url>
	</organization>

	<developers>
		<developer>
			<id>schristou88</id>
			<name>Steven Christou</name>
			<email>schristou88@gmail.com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+6</timezone>
		</developer>
		<developer>
			<id>lj</id>
			<name>Lennart Jörelid</name>
			<email>lj@jguru.se</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+1</timezone>
		</developer>
		<developer>
			<id>dennisl</id>
			<name>Dennis Lundberg</name>
			<email>dennisl@apache.org</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+1</timezone>
		</developer>
		<developer>
			<id>leeyazhou</id>
			<name>leeyazhou</name>
			<email>coderhook@gmail.com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+8</timezone>
		</developer>
	</developers>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty</artifactId>
				<version>${jettyVersion}</version>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-util</artifactId>
				<version>${jettyVersion}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>${commonslangVersion}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4jVersion}</version>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junitVersion}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
				<version>${mockitoVersion}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>${commonsioVersion}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>1.2.3</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<properties>
		<!-- Build definition properties -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<jdk.version>1.6</jdk.version>

		<plugin.java.formatter.version>0.4</plugin.java.formatter.version>
		<plugin.pmd.version>3.6</plugin.pmd.version>
		<plugin.jdoc.version>3.1.1</plugin.jdoc.version>
		<plugin.findbugs.version>3.0.5</plugin.findbugs.version>
		<maven-source-plugin.version>2.4</maven-source-plugin.version>

		<!-- Code style properties -->
		<wtp.version>2.0</wtp.version>
		<clean.plugin.version>2.5</clean.plugin.version>
		<maven-project-info-reports-plugin.version>2.8</maven-project-info-reports-plugin.version>
		<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
		<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
		<asmVersion>5.0.1</asmVersion>
		<oroVersion>2.0.8</oroVersion>
		<jaxenVersion>1.1.4</jaxenVersion>
		<commonsioVersion>2.2</commonsioVersion>
		<commonslangVersion>3.3.2</commonslangVersion>
		<antVersion>1.9.14</antVersion>
		<jettyVersion>6.1.14</jettyVersion>
		<groovyVersion>1.6.9</groovyVersion>
		<javaccVersion>5.0</javaccVersion>
		<logbackVersion>1.2.3</logbackVersion>
		<junitVersion>4.12</junitVersion>
		<mockitoVersion>1.10.19</mockitoVersion>
		<slf4jVersion>1.7.25</slf4jVersion>
		<jdomVersion>1.1.3</jdomVersion>

		<!-- Define the URL prefixes for Site Deployment and DistributionManagement. 
			These can be overridden in sub-reactors to tailor releases to other locations. -->
		<path.in.reactor />
		<reactor.name>cobertura</reactor.name>
		<scm.host>github.com/leeyazhou</scm.host>
		<reactor.url.remote.prefix>http://${scm.host}/${reactor.name}</reactor.url.remote.prefix>
		<site.url.prefix>scp://www-data@angmar/var/www/${reactor.name}</site.url.prefix>
		<site.staging.localDirectory>/tmp/${reactor.name}</site.staging.localDirectory>
		<url.prefix>${reactor.url.remote.prefix}/${reactor.name}/${project.version}</url.prefix>
		<distro.url.prefix>${site.url.prefix}/${reactor.name}/${project.version}</distro.url.prefix>
		<scm.conn>scm:git:git://${scm.host}/${reactor.name}/${reactor.name}</scm.conn>
		<scm.devConnection>scm:git:git@${scm.host}:${reactor.name}/${reactor.name}.git</scm.devConnection>
	</properties>

	<!-- ################################################ # Section 2: Modules 
		################################################ -->
	<modules>
		<module>cobertura-codestyle</module>
		<module>cobertura-parent</module>
		<module>cobertura</module>
		<module>cobertura-flush-war</module>
		<module>cobertura-assembly</module>
	</modules>

	<!-- ################################################ # Section 3: Build 
		settings ################################################ -->
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.6.2</version>
					<configuration>
						<source>${jdk.version}</source>
						<target>${jdk.version}</target>
						<compilerVersion>${jdk.version}</compilerVersion>
						<fork>true</fork>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-failsafe-plugin</artifactId>
					<version>2.20.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-pmd-plugin</artifactId>
					<version>${plugin.pmd.version}</version>
					<configuration>
						<failOnViolation>false</failOnViolation>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>check</goal>
								<goal>cpd-check</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>findbugs-maven-plugin</artifactId>
					<version>${plugin.findbugs.version}</version>
					<configuration>
						<failOnError>false</failOnError>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>check</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.5.3</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>1.4.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>${plugin.jdoc.version}</version>
				</plugin>
				<plugin>
					<groupId>org.sonatype.plugins</groupId>
					<artifactId>nexus-staging-maven-plugin</artifactId>
					<version>${nexus-staging-maven-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>${maven-gpg-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>${maven-source-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.2</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-project-info-reports-plugin</artifactId>
					<version>${maven-project-info-reports-plugin.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>

			<!-- Configures the release plugin. Why: Make the release plugin replace 
				any information received from the Sonatype OSS parent. Used: Release lifecycle, 
				mvn release. -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<configuration>
					<goals>deploy</goals>
					<localCheckout>true</localCheckout>
					<mavenExecutorId>forked-path</mavenExecutorId>
					<tagNameFormat>${reactor.name}-@{project.version}</tagNameFormat>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.scm</groupId>
						<artifactId>maven-scm-provider-hg</artifactId>
						<version>1.9.2</version>
					</dependency>
					<dependency>
						<groupId>org.apache.maven.scm</groupId>
						<artifactId>maven-scm-provider-gitexe</artifactId>
						<version>1.9.2</version>
					</dependency>
				</dependencies>
			</plugin>

			<!-- Configures the site plugin. Its use is further documented in the 
				site documentation itself. Why: Make compile and publish the Nazgul documentation. 
				Used: Site lifecycle, mvn site. -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.4</version>
				<executions>
					<execution>
						<id>attach-descriptor</id>
						<goals>
							<goal>attach-descriptor</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<topSiteURL>${site.url.prefix}/${reactor.name}</topSiteURL>
					<stagingSiteURL>${site.url.prefix}/${reactor.name}</stagingSiteURL>
					<stagingDirectory>${site.staging.localDirectory}</stagingDirectory>
					<generateSitemap>true</generateSitemap>
					<inputEncoding>${project.build.sourceEncoding}</inputEncoding>
					<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.wagon</groupId>
						<artifactId>wagon-ssh</artifactId>
						<version>2.4</version>
					</dependency>
					<dependency>
						<groupId>org.apache.maven.wagon</groupId>
						<artifactId>wagon-file</artifactId>
						<version>2.4</version>
					</dependency>
					<dependency>
						<groupId>org.apache.maven.doxia</groupId>
						<artifactId>doxia-module-markdown</artifactId>
						<version>1.5</version>
					</dependency>
					<dependency>
						<groupId>org.apache.maven.doxia</groupId>
						<artifactId>doxia-module-xhtml</artifactId>
						<version>1.5</version>
					</dependency>
					<!-- Reflow skin and dependencies. -->
					<!-- dependency> <groupId>lt.velykis.maven.skins</groupId> <artifactId>reflow-velocity-tools</artifactId> 
						<version>1.0.0</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> 
						<artifactId>velocity</artifactId> <version>1.7</version> </dependency -->
				</dependencies>
			</plugin>

			<!-- Provides Plantuml integration into site deployments. Why: Convert 
				Plantuml (*.puml) documents to png images, for use in site documentation. 
				Used: Site lifecycle, mvn site. -->
			<plugin>
				<groupId>com.github.jeluard</groupId>
				<artifactId>plantuml-maven-plugin</artifactId>
				<version>7954</version>
				<configuration>
					<sourceFiles>
						<directory>${basedir}</directory>
						<includes>
							<include>src/site/**/*.puml</include>
						</includes>
					</sourceFiles>
					<outputDirectory>${project.build.directory}/site/images/plantuml</outputDirectory>
				</configuration>
				<executions>
					<execution>
						<id>generate-plantuml-diagrams</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<phase>pre-site</phase>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>net.sourceforge.plantuml</groupId>
						<artifactId>plantuml</artifactId>
						<version>7985</version>
					</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
									<version>(,2.1.0),(2.1.0,2.2.0),[2.2.0,)</version>
									<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures
										and checksums
										respectively.
									</message>
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<reporting>
		<excludeDefaults>true</excludeDefaults>
		<outputDirectory>${project.build.directory}/site</outputDirectory>
		<plugins>

			<!-- Configures the projects-info-reports plugin. Why: Reduce the time 
				consumed considerably by removing the need to acquire dependency details 
				and locations. Used: Site lifecycle, mvn site. -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<configuration>
					<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
					<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>${plugin.jdoc.version}</version>
				<configuration>
					<doclint>none</doclint>
					<failOnError>false</failOnError>
					<failOnWarnings>false</failOnWarnings>
				</configuration>
			</plugin>
		</plugins>
	</reporting>

	<profiles>

		<!-- Use GPG to sign artifacts during release:perform. Why: Makes the releases 
			traceable to their originator. Required by maven central and Sonatype OSS. 
			Used: Standard lifecycle, mvn release. -->
		<profile>
			<id>release</id>
			<distributionManagement>
				<repository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
				<snapshotRepository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
				</snapshotRepository>
			</distributionManagement>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-sources</id>
								<phase>verify</phase>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
									<goal>aggregate</goal>
								</goals>
								<configuration>
									<doclint>none</doclint>
									<failOnError>false</failOnError>
									<failOnWarnings>false</failOnWarnings>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<goals>
									<goal>sign</goal>
								</goals>
								<phase>verify</phase>
								<configuration>
									<executable>${gpg.executable}</executable>
									<passphrase>${gpg.passphrase}</passphrase>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<!-- ################################################ # Section 4: External 
		systems ################################################ -->
	<!-- Define Maven's Git integration. -->
	<scm>
		<connection>${scm.conn}</connection>
		<developerConnection>${scm.devConnection}</developerConnection>
		<url>${reactor.url.remote.prefix}/${reactor.name}</url>
		<tag>HEAD</tag>
	</scm>

	<!-- Define the issue management system. -->
	<issueManagement>
		<system>github</system>
		<url>${reactor.url.remote.prefix}/${reactor.name}/issues</url>
	</issueManagement>

	<!-- Define repository settings for Maven's deploy and release plugins. 
		To comply with Maven standards, the repository definitions should go in the 
		settings.xml file, rather than into the POM. This leaves the site URL mechanics 
		in the POM to cater for staging and deploying sites. -->
	<!--distributionManagement> <site> <id>coberturaSite</id> <name>coberturaSite</name> 
		<url>${distro.url.prefix}/${path.in.reactor}</url> </site> </distributionManagement -->

	<distributionManagement>
		<repository>
			<id>ossrh</id>
			<name>Release Repository</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
		<snapshotRepository>
			<id>ossrh</id>
			<name>Snapshots Repository</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
		</snapshotRepository>
	</distributionManagement>


	<pluginRepositories>
		<pluginRepository>
			<id>sonatype-releases</id>
			<url>http://oss.sonatype.org/content/repositories/releases</url>
		</pluginRepository>
		<pluginRepository>
			<id>clojars.org</id>
			<url>http://clojars.org/repo</url>
		</pluginRepository>
	</pluginRepositories>

</project>
