<?xml version="1.0" encoding="UTF-8"?>
<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>project-module-1</artifactId>
	<version>1.0</version>
	
	<parent>
		<groupId>org.apache.test</groupId>
		<artifactId>project-parent</artifactId>
		<version>1.0</version>
		<relativePath>../project-parent/pom.xml</relativePath>
	</parent>
	
	<name>Test Project - Module 1</name>
	<url>http://www.mycompany.org/project-module-1</url>
	
	<build>
		<plugins>
			<!--
			FIXME: The versions specified below will be ignored by Maven 2.0.8 when run via a lifecycle phase.
			More precisely, running "mvn clean" will use the version from the parent POM whereas running
			"mvn clean:clean" will use the versions from this module POM.
			Last but not least, running "mvn site clean" will use the wrong version of the site plugin but the
			correct version of the clean plugin. So, there is something special about the first lifecycle phase.
			-->
			<plugin>
				<artifactId>maven-clean-plugin</artifactId>
				<!-- FIXME: this should override the version inherited via <pluginManagement> from the parent POM -->
				<version>2.2</version>
			</plugin>
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<!-- FIXME: this should override the version inherited via <pluginManagement> from the parent POM -->
				<version>2.2</version>
			</plugin>
			<plugin>
				<artifactId>maven-site-plugin</artifactId>
				<!-- FIXME: this should override the version inherited via <pluginManagement> from the parent POM -->
				<version>2.0-beta-6</version>
			</plugin>
		</plugins>
		<!-- this would to the trick and enable us to override the plugin version
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>2.0-beta-6</version>
				</plugin>
			</plugins>
		</pluginManagement>
		-->
	</build>
	
	<reporting>
		<plugins>
			<plugin>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<reportSets>
					<reportSet/> <!-- speed up site generation -->
				</reportSets>
			</plugin>
		</plugins>
	</reporting>
</project>

