<?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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<groupId>org.wicketstuff</groupId>
	<artifactId>wicketstuff-core</artifactId>
	<packaging>pom</packaging>
	<version>1.4.17</version>

	<name>WicketStuff Core Parent</name>
	<description>
		WicketStuff Core Parent is the parent project for all of the core WicketStuff projects.  It tries
		to unify the WS projects into a common structure that shares a common build / release cycle.  This
		will hopefully keep WicketStuff projects more in sync with Wicket and make it easier on new users.
	</description>

	<url>http://wicketstuff.org</url>

	<!-- mocleiri: moved modules definition into the build-java5-modules and 
		build-java6-modules profiles -->
	<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>
			<comments>
				This project (core-parent) is being released under the Apache 2 license, 
				but does not require that all child projects are released under the same license.
				If a child project defines a license of it's own different from the Apache license,
				Maven recognizes this and uses only that license.  If a child wants to use the
				Apache license, it does not need to define a license at all.  Do not remove this
				license from the parent, or it will un-license child projects that do not have their
				own defined.
			</comments>
		</license>
	</licenses>

	<developers>
		<!-- Please add your name here if you help maintain the core parent or 
			are involved with managing WicketStuff core unified releases, etc. Otherwise, 
			add your developer information to any subprojects that you are a part of. -->
		<developer>
			<id>jthomerson</id>
			<name>Jeremy Thomerson</name>
			<email>jeremy@wickettraining.com</email>
			<url>http://www.jeremythomerson.com</url>
			<timezone>-6</timezone>
			<organization>WicketTraining.com</organization>
			<organizationUrl>http://www.wickettraining.com</organizationUrl>
		</developer>

		<developer>
			<id>mocleiri</id>
			<name>Michael O'Cleirigh</name>
			<email>michael.ocleirigh[at]rivulet.ca</email>
			<timezone>-4</timezone>
		</developer>
	</developers>

	<ciManagement>
		<system>hudson</system>
		<url>http://wicketstuff.org/hudson</url>
	</ciManagement>

	<distributionManagement>
		<site>
			<id>local</id>
			<url>file:target/site</url>
		</site>
		<repository>
			<id>local</id>
			<url>file:target/m2-repo</url>
			<uniqueVersion>false</uniqueVersion>
		</repository>
		<snapshotRepository>
			<id>local</id>
			<url>file:target/m2-snapshot-repo</url>
			<uniqueVersion>false</uniqueVersion>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<profile>
			<id>wicketstuff.org</id>
			<distributionManagement>
				<site>
					<id>wicketstuff-org-site</id>
					<url>scpexe://wicketstuff.org/tmp/wicketstuff-core-site</url>
				</site>
				<repository>
					<id>wicketstuff-org-maven</id>
					<url>scpexe://wicketstuff.org/home/wicket/tomcat/webapps/maven/repository</url>
					<uniqueVersion>false</uniqueVersion>
				</repository>
				<snapshotRepository>
					<id>wicketstuff-org-maven</id>
					<url>scpexe://wicketstuff.org/home/wicket/tomcat/webapps/maven/repository</url>
					<uniqueVersion>false</uniqueVersion>
				</snapshotRepository>
			</distributionManagement>
		</profile>
		<profile>
			<id>bamboo</id>
			<distributionManagement>
				<snapshotRepository>
					<id>repo</id>
					<name>Local TeamCity/Tomcat repository</name>
					<url>file:/home/wicket/tomcat/webapps/maven/repository/</url>
					<uniqueVersion>false</uniqueVersion>
				</snapshotRepository>
				<repository>
					<id>repo</id>
					<name>Local TeamCity/Tomcat repository</name>
					<url>file:/home/wicket/tomcat/webapps/maven/repository/</url>
					<uniqueVersion>false</uniqueVersion>
				</repository>
			</distributionManagement>
		</profile>
		<profile>
			<id>wickettraining.com-continuum</id>
			<distributionManagement>
				<snapshotRepository>
					<id>snapshot-repo</id>
					<name>Local Continuum Snapshot Repo</name>
					<url>file:/usr/local/maven-continuum/snapshot-repo</url>
					<uniqueVersion>false</uniqueVersion>
				</snapshotRepository>
				<repository>
					<id>release-repo</id>
					<name>Local Continuum Release Repo</name>
					<url>file:/usr/local/maven-continuum/release-repo</url>
				</repository>
				<site>
					<id>site-repo</id>
					<name>Local Continuum Site Deployment Folder</name>
					<url>file:/usr/local/maven-continuum/site-deployment</url>
				</site>
			</distributionManagement>
		</profile>
		<profile>
			<id>oss.sonatype.org-staged-release</id>
			<!-- This is the profile to use for releasing into the staged release 
				repo. We need to sign the artifacts. -->

			<activation>
			  <property>
                          <name>performRelease</name>
                          <value>true</value>
                        </property>

			</activation>
			<build>
				<finalName>${project.groupId}-${project.artifactId}-${project.version}</finalName>

				<plugins>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.0</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-release-plugin</artifactId>
						<version>2.0</version>
						<configuration>
							<autoVersionSubmodules>true</autoVersionSubmodules>
							<mavenExecutorId>forked-path</mavenExecutorId>

						</configuration>

					</plugin>
				</plugins>

			</build>

			<distributionManagement>
				<repository>
					<id>sonatype-nexus-staging</id>
					<name>Nexus Release Repository</name>
					<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>

				</repository>

			</distributionManagement>

		</profile>
		
		<!-- mocleiri: this profile is used when we set the next version using the versions:set plugin goal.
			        Normally the core artifact does not have any modules.   This is because we build each submodule
				seperately and using a separate JDK.
		-->	

                <profile>
                        <id>next-version</id>
                        <modules>
                                <module>jdk-1.5-parent</module>
                                <module>jdk-1.6-parent</module>
                        </modules>
                </profile>

		<profile>
			<!-- setup for using oss.sonatype.org to hold snapshots -->
			<!-- should be active for all sessions except where the release plugin 
				is being used. We keep this in a profile since central sync up requires no 
				<repository> tags at the top level of the POM. -->
			<id>oss.sonatype.org-snapshots</id>

			<distributionManagement>
				<snapshotRepository>
					<id>sonatype-nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>http://oss.sonatype.org/content/repositories/snapshots</url>
					<uniqueVersion>false</uniqueVersion>
				</snapshotRepository>
			</distributionManagement>
		</profile>
		<profile>
			<id>resolve-oss.sonatype.org-snapshots</id>

				 <activation>
        	               <property><name>!performRelease</name></property>
	                       </activation>

			<repositories>
				<repository>
					<id>nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>http://oss.sonatype.org/content/repositories/snapshots</url>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>

				</repository>
				<!-- for wicket snapshots -->
				<repository>
					<id>wicket-snapshots</id>
					<name>Apache Wicket Snapshots</name>
					<url>http://repository.apache.org/snapshots</url>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>

			<pluginRepositories>
				<pluginRepository>
					<id>maven-plugin-repo</id>
					<name>Maven plugin snapshots</name>
					<url>https://repository.apache.org/content/repositories/snapshots</url>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
					<releases>
						<enabled>false</enabled>
					</releases>
				</pluginRepository>
			</pluginRepositories>

		</profile>

	</profiles>

	<issueManagement>
		<system>github</system>
		<url>https://github.com/wicketstuff/core/issues</url>
	</issueManagement>

	<mailingLists>
		<mailingList>
			<name>Wicket User List</name>
			<post>users@wicket.apache.org</post>
			<subscribe>users-subscribe@wicket.apache.org</subscribe>
			<unsubscribe>users-unsubscribe@wicket.apache.org</unsubscribe>
			<archive>http://www.nabble.com/Wicket---User-f13976.html</archive>
		</mailingList>
	</mailingLists>

	<scm>
		<url>https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.17</url>
		<connection>scm:git:ssh://git@github.com:wicketstuff/core.git</connection>
	</scm>

	<properties>
		<wicket.version>1.4.17</wicket.version>
		<jetty.version>6.1.22</jetty.version>

		<eclipse.jetty.version>7.1.4.v20100610</eclipse.jetty.version>
		<lucene.version>2.4.1</lucene.version>
		<slf4j.version>1.5.11</slf4j.version>

		<!-- needed for building the release artifacts -->
		 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

	</properties>
	<dependencies>
		<dependency>
			<groupId>org.apache.wicket</groupId>
			<artifactId>wicket</artifactId>
			<version>${wicket.version}</version>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<!-- In order for this project to work, all child projects need to use 
				these versions of wicket-* and not specify their own version -->
			<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>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket-ioc</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-spring</artifactId>
				<version>${wicket.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.wicket</groupId>
				<artifactId>wicket-velocity</artifactId>
				<version>${wicket.version}</version>
			</dependency>

			<!-- The following can be used if wanted by other projects -->
			<!-- LOGGING -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-log4j12</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>jcl-over-slf4j</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>log4j</groupId>
				<artifactId>log4j</artifactId>
				<version>1.2.14</version>
			</dependency>

			<!-- TESTING / DEV -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.8.1</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>net.sourceforge.jwebunit</groupId>
				<artifactId>jwebunit-core</artifactId>
				<version>2.2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>net.sourceforge.jwebunit</groupId>
				<artifactId>jwebunit-htmlunit-plugin</artifactId>
				<version>2.2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty</artifactId>
				<version>${jetty.version}</version>

			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-util</artifactId>
				<version>${jetty.version}</version>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-management</artifactId>
				<version>${jetty.version}</version>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>servlet-api-2.5</artifactId>
				<!-- <version>${jetty.version}</version> 6.1.14 is the latest version 
					in central -->
				<version>6.1.14</version>
			</dependency>

			<!-- COMMONS -->
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-email</artifactId>
				<version>1.1</version>
			</dependency>
			<dependency>
				<groupId>commons-lang</groupId>
				<artifactId>commons-lang</artifactId>
				<version>2.4</version>
			</dependency>
			<dependency>
				<groupId>commons-collections</groupId>
				<artifactId>commons-collections</artifactId>
				<version>3.2.1</version>
			</dependency>
			<dependency>
				<groupId>commons-dbcp</groupId>
				<artifactId>commons-dbcp</artifactId>
				<version>20030825.184428</version>
			</dependency>
			<dependency>
				<groupId>commons-dbutils</groupId>
				<artifactId>commons-dbutils</artifactId>
				<version>1.2</version>
			</dependency>
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>1.4</version>
			</dependency>
			<dependency>
				<groupId>commons-codec</groupId>
				<artifactId>commons-codec</artifactId>
				<version>1.4</version>
			</dependency>
			<dependency>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging</artifactId>
				<version>1.1.1</version>
			</dependency>

			<!-- MIDDLE TIER -->
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring</artifactId>
				<version>2.5.6</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-hibernate3</artifactId>
				<version>2.0.8</version>
			</dependency>
			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-core</artifactId>
				<version>${lucene.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-misc</artifactId>
				<version>${lucene.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.lucene</groupId>
				<artifactId>lucene-spellchecker</artifactId>
				<version>${lucene.version}</version>
			</dependency>

			<!-- SCHEDULING -->
			<dependency>
				<groupId>opensymphony</groupId>
				<artifactId>quartz</artifactId>
				<version>1.6.0</version>
			</dependency>


			<!-- OTHER -->
			<dependency>
				<groupId>ognl</groupId>
				<artifactId>ognl</artifactId>
				<version>2.7.3</version>
			</dependency>
			<dependency>
				<groupId>org.freemarker</groupId>
				<artifactId>freemarker</artifactId>
				<version>2.3.15</version>
			</dependency>
			<dependency>
				<groupId>rome</groupId>
				<artifactId>rome</artifactId>
				<version>0.9</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<resources>
			<resource>
				<filtering>false</filtering>
				<directory>src/main/resources</directory>
			</resource>
			<resource>
				<filtering>false</filtering>
				<directory>src/main/java</directory>
				<includes>
					<include>**</include>
				</includes>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<filtering>false</filtering>
				<directory>src/test/java</directory>
				<includes>
					<include>**</include>
				</includes>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</testResource>
		</testResources>
		<plugins>
			<plugin>
				<inherited>true</inherited>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<minmemory>128m</minmemory>
					<maxmemory>256m</maxmemory>
					<quiet>true</quiet>
				</configuration>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<inherited>true</inherited>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>2.1.2</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<index>true</index>
						<manifest>
							<addDefaultSpecificationEntries>
								true
							</addDefaultSpecificationEntries>
							<addDefaultImplementationEntries>
								true
							</addDefaultImplementationEntries>
						</manifest>
						<manifestEntries>
							<Specification-Title>${project.name}</Specification-Title>
							<Specification-Version>${project.version}</Specification-Version>
							<Implementation-Title>${project.name}</Implementation-Title>
							<Implementation-Version>${project.version} ${buildNumber} -
								${user.name}</Implementation-Version>
							<SCM-Revision>${buildNumber}</SCM-Revision>
							<SCM-url>${scm.url}</SCM-url>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.8</version>
				<configuration>
					<downloadSources>true</downloadSources>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<includes>
						<include>**/*Test.java</include>
					</includes>
					<testFailureIgnore>false</testFailureIgnore>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<version>2.5</version>
			</plugin>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<downloadSources>true</downloadSources>
					<additionalProjectnatures>
						<projectnature>wicketbench.wicketnature</projectnature>
					</additionalProjectnatures>
					<additionalBuildcommands>
						<buildcommand>wicketbench.associatedMarkupAuditor</buildcommand>
					</additionalBuildcommands>
				</configuration>
			</plugin>

		</plugins>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>maven-jetty-plugin</artifactId>
					<version>${jetty.version}</version>
				</plugin>
				<plugin>
					<artifactId>maven-idea-plugin</artifactId>
					<version>2.2</version>
				</plugin>

			</plugins>
		</pluginManagement>

	</build>

	<reporting>
		<plugins>
			<!-- HERE ARE SOME EXPERIMENTAL PLUGINS TO WORK IN SITE GEN: -->
			<plugin>
				<artifactId>maven-pmd-plugin</artifactId>
				<configuration>
					<linkXRef>true</linkXRef>
					<sourceEncoding>utf-8</sourceEncoding>
					<targetJdk>1.5</targetJdk>
					<minimumTokens>100</minimumTokens>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-project-info-reports-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-jxr-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-checkstyle-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>changes-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>taglist-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-report-plugin</artifactId>
			</plugin>
		</plugins>
	</reporting>

</project>
