<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>

	<parent>
		<groupId>org.wicketstuff</groupId>
		<artifactId>wicketstuff-core</artifactId>
	        <version>1.4.21</version>
	</parent>

	<artifactId>jdk-1.5-parent</artifactId>
	<packaging>pom</packaging>

	<name>Java 5 Modules - Parent</name>
	<description>
	Wicketstuff core modules that can be built using java 5.
	</description>


	<build>
	<plugins>

	<plugin>

		<inherited>true</inherited>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-help-plugin</artifactId>
		<version>2.1.1</version>

	</plugin>

			<plugin>
				<!-- make sure our code doesn't have 1.6 dependencies except where we 
					know it see * http://mojo.codehaus.org/animal-sniffer/index.html * http://weblogs.java.net/blog/kohsuke/archive/2008/11/compiling_with.html -->
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>animal-sniffer-maven-plugin</artifactId>
				<version>1.7</version>				
				<inherited>true</inherited>
				<configuration>
					<signature>
						<groupId>org.codehaus.mojo.signature</groupId>
						<artifactId>java15</artifactId>
						<version>1.0</version>
					</signature>
				</configuration>
			</plugin>

		<plugin>
				<inherited>true</inherited>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.3.2</version>
					<executions>
						<!-- will compile the tests using the java 5 compiler -->
						<execution>
							<id>java-5-compile-tests</id>
							<phase>compile</phase>
							<goals>
								<goal>testCompile</goal>
							</goals>
							<configuration>
								<source>1.5</source>
								<target>1.5</target>
								<compilerVersion>1.5</compilerVersion>
								<executable>${env.JAVA_5_HOME}/bin/javac</executable>
								<fork>true</fork>

								<encoding>UTF-8</encoding>
							</configuration>
						</execution>
						<!-- Will compile the modules using java 6 source to java 5 
							Due to how the java 6 compiler works this will allow java 6 ism's in the code
							to be compiled back into java 5 compatible class files.
						    -->
						<execution>
							<id>java-6-compile-to-java-5</id>
							<phase>compile</phase>
							<goals><goal>compile</goal></goals>
							<configuration>
								<source>1.5</source>
								<target>1.5</target>
								<encoding>UTF-8</encoding>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<!-- run the tests using java 5 -->
				<plugin>
					<inherited>true</inherited>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.10</version>
					<configuration>
						<jvm>${env.JAVA_5_HOME}/bin/java</jvm>
					</configuration>
				</plugin>
			</plugins>
	</build>

	<profiles>

		<profile>
			<id>snapshot</id>			
			<activation>
				<property>
				        <name>!performRelease</name>
				</property>
			</activation>

			<modules>
			<module>jqplot-parent</module>
		<module>mootools-meiomask-parent</module>
		<module>progressbar-parent</module>
		<module>push-parent-jdk-1.5</module>
		<module>scala-extensions-parent</module>
		<module>annotation</module>
		<module>calendarviews-parent</module>
		<module>client-and-server-validation</module>
		<module>console-parent</module>
		<module>datatable-autocomplete-parent</module>
		<module>datatables-parent</module>
		<module>eidogo-parent</module>
		<module>gmap2-parent</module>
		<module>googlecharts-parent</module>
		<module>inmethod-grid-parent</module>
		<module>input-events-parent</module>
		<module>jslibraries</module>
		<module>jquery-parent</module>
		<module>jsr303-parent</module>
		<module>misc</module>
		<module>minis-parent</module>
		<module>objectautocomplete-parent</module>
		<module>openlayers-parent</module>
		<module>phonebook</module>
		<module>prototype</module>
		<module>scriptaculous-parent</module>
		<module>simile-timeline-parent</module>
		<module>tinymce-parent</module>
		<!-- mocleiri: not included in module because it breaks jenkins -->
<!--		<module>yui-parent</module> 
		ddcalendar is disabled because it depends on yui-parent
		<module>ddcalendar-parent</module>
		-->
		<module>artwork-parent</module>
		<module>yav-parent</module>
		<module>plugin</module>
		<module>sitemap-xml-parent</module>		
		<module>multi-text-input-parent</module>
		<module>shiro-security</module> 
		<module>flot-parent</module>
		<module>jwicket-parent</module>
		<module>mbeanview-parent</module>
		<module>fixed-feedback-panel</module>
		<module>maven-support</module>
		<module>theme-parent</module>
		<module>jasperreports-parent</module>
		<module>modalx-parent</module>
		<module>spring-webflow-parent</module>
		<module>animator</module>
	  </modules>

		</profile>

		<profile>
			<id>release</id>			
			<activation>
				<property>
				        <name>performRelease</name>
				        <value>true</value>
				</property>
			</activation>

			<modules>
			<module>jqplot-parent</module>
		<module>mootools-meiomask-parent</module>
		<module>progressbar-parent</module>
		<module>push-parent-jdk-1.5</module>
		<module>scala-extensions-parent</module>
		<module>annotation</module>
		<module>calendarviews-parent</module>
		<module>client-and-server-validation</module>
		<module>console-parent</module>
		<module>datatable-autocomplete-parent</module>
		<module>datatables-parent</module>
		<module>eidogo-parent</module>
		<module>gmap2-parent</module>
		<module>googlecharts-parent</module>
		<module>inmethod-grid-parent</module>
		<module>input-events-parent</module>
		<module>jslibraries</module>
		<module>jquery-parent</module>
		<module>jsr303-parent</module>
		<module>misc</module>
		<module>minis-parent</module>
		<module>objectautocomplete-parent</module>
		<module>openlayers-parent</module>
		<module>phonebook</module>
		<module>prototype</module>
		<module>scriptaculous-parent</module>
		<module>simile-timeline-parent</module>
		<module>tinymce-parent</module>
		<module>yui-parent</module>
		<module>artwork-parent</module>
		<module>yav-parent</module>
		<module>plugin</module>
		<!--commented out until org.apache.commons:commons-proxy:jar:1.1-SNAPSHOT is available -->
		<!--see http://www.nabble.com/Wicketstuff-core...-td23105708.html#a23106385 -->
		<!-- <module>syringe</module> -->
		<module>sitemap-xml-parent</module>		
		<module>multi-text-input-parent</module>
		<module>shiro-security</module> 
		<module>flot-parent</module>
		<module>jwicket-parent</module>
		<module>mbeanview-parent</module>
		<module>ddcalendar-parent</module>
		<module>fixed-feedback-panel</module>
		<module>maven-support</module>
		<module>theme-parent</module>
		<module>jasperreports-parent</module>
		<module>modalx-parent</module>
		<module>spring-webflow-parent</module>
		<module>animator</module>
	  </modules>

		</profile>

		

	</profiles>


</project>
