<?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>
	<groupId>net.sf.alchim</groupId>
	<artifactId>alchim-parent</artifactId>
	<version>3</version>
	<packaging>pom</packaging>
	<name>${project.artifactId}</name>
	<url>http://alchim.sf.net/${project.artifactId}</url>
	<inceptionYear>2007</inceptionYear>
	<licenses>
		<license>
			<name>Creative Commons GNU LGPL, Version 2.1</name>
			<url>http://creativecommons.org/licenses/LGPL/2.1/</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<!-- artifactId is added when site is generated -->
		<connection>scm:hg:http://alchim.sf.net/hg/</connection>
		<developerConnection>scm:hg:http://alchim.sf.net/hg/</developerConnection>
		<url>http://alchim.sf.net/hg/</url>
	</scm>
	<organization>
		<name>Alchim31 Team</name>
		<url>http://sourceforge.net/projects/alchim</url>
	</organization>
	<developers>
		<developer>
			<id>david.bernard</id>
			<name>David Bernard</name>
			<email>dwayneb at users.sf.net</email>
			<timezone>+1</timezone>
			<roles>
				<role>Developer</role>
			</roles>
		</developer>
	</developers>
	<properties>
		<java.src.version>1.5</java.src.version>
		<runtime.log>target/velocity.log</runtime.log>
		<maven.version>2.0.7</maven.version>
		<slf4j.version>1.4.3</slf4j.version>
		<wicket.version>1.3.0-beta4</wicket.version>
	</properties>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>net.sf.alchim</groupId>
				<artifactId>alchim-codeplus</artifactId>
				<version>0.3.1</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>commons-lang</groupId>
				<artifactId>commons-lang</artifactId>
				<version>2.3</version>
			</dependency>
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-io</artifactId>
				<version>1.3.2</version>
			</dependency>
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>0.9.7</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-simple</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>jcl104-over-slf4j</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<!-- Wicket -->
			<dependency>
				<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
				<version>2.5</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket</artifactId>
				<version>${wicket.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket-guice</artifactId>
				<version>${wicket.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket-extensions</artifactId>
				<version>${wicket.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket-datetime</artifactId>
				<version>${wicket.version}</version>
			</dependency>
			<!-- Maven plugin dev -->
			<dependency>
				<groupId>org.apache.maven</groupId>
				<artifactId>maven-plugin-api</artifactId>
				<version>${maven.version}</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.maven</groupId>
				<artifactId>maven-project</artifactId>
				<version>${maven.version}</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.maven.reporting</groupId>
				<artifactId>maven-reporting-impl</artifactId>
				<version>2.0.4</version>
			</dependency>
			<dependency>
				<groupId>org.apache.maven.reporting</groupId>
				<artifactId>maven-reporting-api</artifactId>
				<version>2.0.4</version>
			</dependency>
			<dependency>
				<groupId>org.apache.maven.doxia</groupId>
				<artifactId>doxia-site-renderer</artifactId>
				<version>1.0-alpha-8</version>
			</dependency>
			<!-- Test -->
			<dependency>
				<groupId>org.testng</groupId>
				<artifactId>testng</artifactId>
				<version>5.1</version>
				<classifier>jdk15</classifier>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>3.8.2</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<repositories>
		<repository>
			<id>org.wicketstuff</id>
			<url>http://wicketstuff.org/maven/repository/</url>
		</repository>
	</repositories>
	<!-- 
		<pluginRepositories>
		<pluginRepository>
		<id>www.jdocs.com</id>
		<url>http://www.jdocs.com/maven-repo/</url>
		</pluginRepository>
		</pluginRepositories>
	-->
	<build>
		<resources>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>overview.html</exclude>
					<exclude>**/package.html</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>${basedir}/src/main/java</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>${java.src.version}</source>
					<target>${java.src.version}</target>
					<optimise>true</optimise>
					<debug>true</debug>
				</configuration>
			</plugin>
			<!-- clean coverage data before collecting -->
			<plugin>
				<artifactId>cobertura-maven-plugin</artifactId>
				<groupId>org.codehaus.mojo</groupId>
				<version>2.0</version>
				<executions>
					<execution>
						<goals>
							<goal>clean</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<index>true</index>
						<manifest>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
						<manifestEntries />
					</archive>
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>net.sf.alchim</groupId>
					<artifactId>winstone-maven-plugin</artifactId>
					<executions>
						<execution>
							<phase>package</phase>
							<goals>
								<goal>embed</goal>
							</goals>
						</execution>
					</executions>
					<dependencies>
						<dependency>
							<groupId>net.sourceforge.winstone</groupId>
							<artifactId>winstone-lite</artifactId>
							<version>0.9.6</version>
						</dependency>
					</dependencies>
					<configuration>
						<cmdLineOptions>
							<property>
								<name>ajp13Port</name>
								<value>-1</value>
							</property>
						</cmdLineOptions>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>maven-jetty-plugin</artifactId>
					<configuration>
						<contextPath>/</contextPath>
						<scanIntervalSeconds>60</scanIntervalSeconds>
						<webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>
						<connectors>
							<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
								<port>8080</port>
								<maxIdleTime>60000</maxIdleTime>
							</connector>
						</connectors>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<reporting>
		<plugins>
			<plugin>
				<artifactId>maven-project-info-reports-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<minmemory>128m</minmemory>
					<maxmemory>512m</maxmemory>
					<encoding>UTF-8</encoding>
					<docencoding>UTF-8</docencoding>
					<charset>UTF-8</charset>
					<doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc</doclet>
					<docletArtifact>
						<groupId>gr.spinellis</groupId>
						<artifactId>UmlGraph</artifactId>
						<version>4.6</version>
					</docletArtifact>
					<links>
						<link>http://java.sun.com/j2se/${java.src.version}/docs/api/</link>
						<link>http://slf4j.org/api/</link>
						<link>http://jakarta.apache.org/commons/logging/apidocs/</link>
						<link>http://logging.apache.org/log4j/docs/api/</link>
						<link>http://people.apache.org/~tobrien/wicket/apidocs/</link>
						<link>http://commons.apache.org/lang/api-release/</link>
						<link>http://commons.apache.org/io/api-release/</link>
						<link>http://testng.org/javadocs/</link>
						<link>http://junit.sourceforge.net/javadoc/</link>
					</links>
				</configuration>
			</plugin>
			<!-- 
				<plugin>
				<groupId>com.dzone.jdocs</groupId>
				<artifactId>javadoc</artifactId>
				<version>1.0</version>
				<configuration>
				<aggregate>true</aggregate>
				<source>${java.src.version}</source>
				<overview>${basedir}/src/main/java/overview.html</overview>
				</configuration>
				</plugin>
			-->
			<plugin>
				<artifactId>maven-jxr-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>taglist-maven-plugin</artifactId>
				<configuration>
					<tags>
						<tag>TODO</tag>
						<tag>FIXME</tag>
						<tag>@todo</tag>
						<tag>@deprecated</tag>
					</tags>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<!-- version 2.1 is bugged ouput coverage 100% or 0% -->
				<version>2.0</version>
				<configuration>
					<formats>
						<format>xml</format>
						<format>html</format>
					</formats>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<configuration>
					<showSuccess>false</showSuccess>
				</configuration>
				<reportSets>
					<reportSet>
						<reports>
							<report>report-only</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<artifactId>maven-checkstyle-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-pmd-plugin</artifactId>
				<configuration>
					<linkXref>true</linkXref>
					<sourceEncoding>utf-8</sourceEncoding>
					<minimumTokens>100</minimumTokens>
					<targetJdk>${java.src.version}</targetJdk>
				</configuration>
				<reportSets>
					<reportSet>
						<reports>
							<report>pmd</report>
							<report>cpd</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<artifactId>maven-changes-plugin</artifactId>
				<version>2.0-beta-2</version>
				<reportSets>
					<reportSet>
						<reports>
							<report>changes-report</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>rat-maven-plugin</artifactId>
				<version>1.0-alpha-3</version>
			</plugin>
		</plugins>
	</reporting>
	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>rat-maven-plugin</artifactId>
						<version>1.0-alpha-3</version>
						<executions>
							<execution>
								<phase>verify</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-javadoc-plugin</artifactId>
						<configuration>
							<minmemory>128m</minmemory>
							<maxmemory>512m</maxmemory>
							<quiet>true</quiet>
						</configuration>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-site-plugin</artifactId>
					</plugin>
					<plugin>
						<inherited>true</inherited>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-remote-resources-plugin</artifactId>
						<executions>
							<execution>
								<goals>
									<goal>process</goal>
								</goals>
								<configuration>
									<resourceBundles>
										<resourceBundle>org.apache:apache-jar-resource-bundle:1.2</resourceBundle>
										<resourceBundle>org.apache:apache-incubator-disclaimer-resource-bundle:1.1</resourceBundle>
									</resourceBundles>
								</configuration>
							</execution>
						</executions>
						<inherited>true</inherited>
					</plugin>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<configuration>
							<descriptors>
								<descriptor>${basedir}/src/assembly/project.xml</descriptor>
							</descriptors>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>repo-embed</id>
			<repositories>
				<repository>
					<id>embedded</id>
					<name>Project Embbed Repository</name>
					<url>file://${basedir}/repo-embedded</url>
					<snapshots />
					<releases />
				</repository>
			</repositories>
		</profile>
		<profile>
			<id>repo-alchim</id>
			<repositories>
				<repository>
					<id>alchim</id>
					<url>http://alchim.sf.net/download/releases</url>
					<releases />
				</repository>
				<repository>
					<id>alchim.snapshots</id>
					<url>http://alchim.sf.net/download/snapshots</url>
					<snapshots />
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>alchim.snapshots</id>
					<url>http://alchim.sf.net/download/snapshots</url>
					<snapshots />
					<releases />
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<distributionManagement>
		<repository>
			<id>alchim.sf.net</id>
			<name>sourceforge</name>
			<url>scp://alchim.sf.net/home/groups/a/al/alchim/htdocs/download/releases</url>
		</repository>
		<snapshotRepository>
			<id>alchim.sf.net</id>
			<name>sourceforge</name>
			<url>scp://alchim.sf.net/home/groups/a/al/alchim/htdocs/download/snapshots</url>
			<uniqueVersion>false</uniqueVersion>
		</snapshotRepository>
		<site>
			<id>alchim.sf.net</id>
			<name>sourceforge</name>
			<url>scp://alchim.sf.net/home/groups/a/al/alchim/htdocs/${project.artifactId}</url>
		</site>
	</distributionManagement>
</project>
