<?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.springframework.batch</groupId>
	<artifactId>spring-batch</artifactId>
	<name>Spring Batch</name>
	<description>Spring Batch provides tools for enterprise batch or bulk processing. It can be used to wire up jobs, and track
	their execution, or simply as an optimization for repetitive processing in a transactional environment. Spring Batch is part of the Spring Portfolio.</description>
	<version>2.2.8.BUILD-SNAPSHOT</version>
	<packaging>pom</packaging>
	<modules>
		<module>spring-batch-parent</module>
		<module>spring-batch-infrastructure</module>
		<module>spring-batch-core</module>
		<module>spring-batch-test</module>
	</modules>
	<url>http://www.springsource.org/spring-batch</url>
	<organization>
		<name>Pivotal</name>
		<url>http://spring.io</url>
	</organization>
	<scm>
		<url>http://github.com/spring-projects/spring-batch</url>
		<connection>scm:git:git://github.com/spring-projects/spring-batch.git</connection>
		<developerConnection>scm:git:ssh://git@github.com/spring-projects/spring-batch.git</developerConnection>
	  <tag>HEAD</tag>
  </scm>
	<issueManagement>
		<system>JIRA</system>
		<url>http://opensource.atlassian.com/projects/spring/browse/BATCH</url>
	</issueManagement>
	<mailingLists>
		<mailingList>
			<name>Spring Batch Forum</name>
			<post>http://forum.springframework.org/forumdisplay.php?f=41</post>
			<archive>http://forum.springframework.org/forumdisplay.php?f=41</archive>
		</mailingList>
	</mailingLists>
	<ciManagement>
		<system>Bamboo</system>
		<url>https://build.springframework.org/bamboo/browse/BATCH</url>
	</ciManagement>
	<licenses>
		<license>
			<name>Apache 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<dependency.locations.enabled>false</dependency.locations.enabled>
		<dist.id>spring-batch</dist.id>
		<dist.name>Spring Batch</dist.name>
		<dist.key>BATCH</dist.key>
		<dist.version>${project.version}</dist.version>
		<dist.finalName>${dist.id}-${dist.version}-no-dependencies</dist.finalName>
		<dist.fileName>${dist.finalName}.zip</dist.fileName>
		<dist.filePath>target/${dist.fileName}</dist.filePath>
		<dist.bucketName>dist.springframework.org</dist.bucketName>
	</properties>
	<profiles>
		<profile>
			<id>all</id>
			<modules>
				<module>spring-batch-samples</module>
				<module>archetypes</module>
				<module>spring-batch-infrastructure-tests</module>
				<module>spring-batch-core-tests</module>
			</modules>
		</profile>
		<profile>
			<id>release</id>
			<modules>
				<module>spring-batch-samples</module>
				<module>archetypes</module>
			</modules>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<inherited>false</inherited>
						<executions>
							<execution>
								<id>zip-files</id>
								<inherited>false</inherited>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<descriptors>
										<descriptor>src/assembly/no-dependencies.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>com.agilejava.docbkx</groupId>
						<artifactId>docbkx-maven-plugin</artifactId>
						<version>2.0.8</version>
						<executions>
							<execution>
								<id>single-page</id>
								<goals>
									<goal>generate-html</goal>
								</goals>
								<configuration>
									<htmlCustomization>${basedir}/src/docbkx/resources/xsl/html.xsl</htmlCustomization>
									<postProcess>
										<move todir="${basedir}/target/site/reference/html-single">
											<fileset dir="${basedir}/target/docbkx/html">
												<include name="index.html" />
											</fileset>
										</move>
										<copy todir="${basedir}/target/site/reference/html-single">
											<fileset dir="${basedir}/src/docbkx/resources">
												<include name="**/*.css" />
												<include name="**/*.png" />
												<include name="**/*.gif" />
												<include name="**/*.jpg" />
											</fileset>
										</copy>
										<copy todir="${basedir}/target/site/reference/html-single">
											<fileset dir="${basedir}/src/site/docbook/reference">
												<include name="**/*.png" />
												<include name="**/*.gif" />
												<include name="**/*.jpg" />
											</fileset>
										</copy>
									</postProcess>
								</configuration>
								<phase>pre-site</phase>
							</execution>
							<execution>
								<id>single-pdf</id>
								<goals>
									<goal>generate-pdf</goal>
								</goals>
								<configuration>
									<imgSrcPath>src/site/docbook/reference/</imgSrcPath>
									<admonGraphicsPath>src/docbkx/resources/images/</admonGraphicsPath>
									<postProcess>
										<copy file="${basedir}/target/docbkx/pdf/index.pdf" tofile="${basedir}/target/site/reference/pdf/spring-batch-docs.pdf" failonerror="false" />
									</postProcess>
								</configuration>
								<phase>pre-site</phase>
							</execution>
							<execution>
								<id>multi-page</id>
								<goals>
									<goal>generate-html</goal>
								</goals>
								<configuration>
									<chunkedOutput>true</chunkedOutput>
									<htmlCustomization>${basedir}/src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
									<postProcess>
										<move todir="${basedir}/target/site/reference">
											<fileset dir="${basedir}/target/docbkx">
												<include name="**/*.html" />
											</fileset>
										</move>
										<copy todir="${basedir}/target/site/reference/html">
											<fileset dir="${basedir}/src/docbkx/resources">
												<include name="**/*.css" />
												<include name="**/*.png" />
												<include name="**/*.gif" />
												<include name="**/*.jpg" />
											</fileset>
										</copy>
										<copy todir="${basedir}/target/site/reference/html">
											<fileset dir="${basedir}/src/site/docbook/reference">
												<include name="**/*.png" />
												<include name="**/*.gif" />
												<include name="**/*.jpg" />
											</fileset>
										</copy>
									</postProcess>
								</configuration>
								<phase>pre-site</phase>
							</execution>
						</executions>
						<dependencies>
							<dependency>
								<groupId>org.docbook</groupId>
								<artifactId>docbook-xml</artifactId>
								<version>4.4</version>
								<scope>runtime</scope>
							</dependency>
							<dependency>
								<groupId>org.apache.xmlgraphics</groupId>
								<artifactId>fop</artifactId>
								<version>0.93</version>
							</dependency>
						</dependencies>
						<configuration>
							<includes>index.xml</includes>
							<chunkedOutput>false</chunkedOutput>
							<draftWatermarkImage />
							<htmlStylesheet>css/html.css</htmlStylesheet>
							<sourceDirectory>${basedir}/src/site/docbook/reference</sourceDirectory>
							<foCustomization>${basedir}/src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
							<xincludeSupported>true</xincludeSupported>
							<entities>
								<entity>
									<name>version</name>
									<value>${project.version}</value>
								</entity>
							</entities>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>copy-parent-pom</id>
								<phase>generate-sources</phase>
								<configuration>
									<tasks>
										<copy file="pom.xml" todir="target" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
							<execution>
							  <id>upload-dist</id>
							  <phase>deploy</phase>
							  <goals>
								<goal>run</goal>
							  </goals>
							  <configuration>
								<tasks>
								  <ant antfile="${basedir}/src/ant/upload-dist.xml">
									<target name="upload-dist" />
								  </ant>
								</tasks>
							  </configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>verify</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>extract</id>
								<phase>verify</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<tasks>
										<unzip dest="target/it/no-dep">
											<fileset dir="target">
												<include name="*no-dep*.zip" />
											</fileset>
											<regexpmapper from="^[^/]*/(.*)$$" to="\1" handledirsep="true" />
										</unzip>
										<fail message="Failed integration test of zip distro: dist/* jar file count wrong.">
											<condition>
												<not>
													<resourcecount count="6">
														<fileset id="fs" dir="target/it/no-dep/dist" includes="spring-batch-*.jar" />
													</resourcecount>
												</not>
											</condition>
										</fail>
									</tasks>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<!-- After the file count, we build the samples and archetypes as well -->
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-invoker-plugin</artifactId>
						<configuration>
							<projectsDirectory>target/it/no-dep</projectsDirectory>
							<localRepositoryPath>target/local-repo</localRepositoryPath>
							<debug>true</debug>
							<settingsFile>${basedir}/src/it/settings.xml</settingsFile>
							<goals>
								<goal>test</goal>
							</goals>
							<pomIncludes>
								<pomInclude>samples/*/pom.xml</pomInclude>
							</pomIncludes>
						</configuration>
						<executions>
							<execution>
								<id>integration-test</id>
								<phase>verify</phase>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>build</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<!-- After the file count, we build the samples and archetypes as well -->
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-invoker-plugin</artifactId>
						<configuration>
							<projectsDirectory>${basedir}</projectsDirectory>
							<localRepositoryPath>target/local-repo</localRepositoryPath>
							<debug>true</debug>
							<settingsFile>${basedir}/src/it/settings.xml</settingsFile>
							<goals>
								<goal>clean</goal>
								<goal>install</goal>
							</goals>
							<pomIncludes>
								<pomInclude>pom.xml</pomInclude>
							</pomIncludes>
						</configuration>
						<executions>
							<execution>
								<id>integration-test</id>
								<phase>verify</phase>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>samples</id>
			<modules>
				<module>spring-batch-samples</module>
				<module>archetypes</module>
			</modules>
		</profile>
		<profile>
			<id>milestone</id>
			<distributionManagement>
				<repository>
					<id>spring-milestone</id>
					<name>Spring Milestone Repository</name>
					<url>s3://maven.springframework.org/milestone</url>
				</repository>
			</distributionManagement>
		</profile>
		<profile>
			<id>central</id>
			<distributionManagement>
			  <snapshotRepository>
				<id>sonatype-nexus-snapshots</id>
				<name>Sonatype Nexus Snapshots</name>
				<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
			  </snapshotRepository>
			  <repository>
				<id>sonatype-nexus-staging</id>
				<name>Nexus Release Repository</name>
				<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
			  </repository>
			</distributionManagement>
		</profile>
		<profile>
			<id>staging</id>
			<properties>
			  <dist.staging>/${user.dir}/target/staging/dist</dist.staging>
			</properties>
			<distributionManagement>
				<site>
					<id>staging</id>
					<url>file:///${user.dir}/target/staging</url>
				</site>
				<repository>
					<id>staging</id>
					<url>file:///${user.dir}/target/staging</url>
				</repository>
				<snapshotRepository>
					<id>staging</id>
					<url>file:///${user.dir}/target/staging</url>
				</snapshotRepository>
			</distributionManagement>
			<build>
			  <plugins>
				<plugin>
				  <groupId>org.apache.maven.plugins</groupId>
				  <artifactId>maven-deploy-plugin</artifactId>
				  <configuration>
					<skip>false</skip>
				  </configuration>
				</plugin>
			  </plugins>
			  <!-- the name of this project is 'spring-amqp-dist';
				   make sure the zip file is just 'spring-amqp'. -->
			  <finalName>${dist.finalName}</finalName>
			</build>
		</profile>
		<profile>
			<id>manifest</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>com.springsource.bundlor</groupId>
						<artifactId>com.springsource.bundlor.maven</artifactId>
						<executions>
							<execution>
								<id>bundlor-manifest</id>
								<phase>package</phase>
								<goals>
									<goal>manifest</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<distributionManagement>
		<site>
			<id>static.springframework.org</id>
			<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-batch/trunk</url>
		</site>
		<repository>
			<id>spring-release</id>
			<name>Spring Release Repository</name>
			<url>s3://maven.springframework.org/release</url>
		</repository>
		<snapshotRepository>
			<id>spring-snapshot</id>
			<name>Spring Snapshot Repository</name>
			<url>s3://maven.springframework.org/snapshot</url>
		</snapshotRepository>
	</distributionManagement>
	<build>
		<extensions>
			<extension>
				<groupId>org.springframework.build.aws</groupId>
				<artifactId>org.springframework.build.aws.maven</artifactId>
				<version>3.0.0.RELEASE</version>
			</extension>
		</extensions>
		<pluginManagement>
			<plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-release-plugin</artifactId>
                  <version>2.3</version>
                </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-site-plugin</artifactId>
                  <version>2.2</version>
                  <dependencies>
                    <dependency>
                      <groupId>org.apache.maven.wagon</groupId>
                      <artifactId>wagon-ssh</artifactId>
                      <version>1.0-beta-7</version>
                    </dependency>
                  </dependencies>
                </plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.4</version>
					<dependencies>
					  <dependency>
						<groupId>org.springframework.build</groupId>
						<artifactId>org.springframework.build.aws.ant</artifactId>
						<version>3.0.5.RELEASE</version>
					  </dependency>
					  <dependency>
						<groupId>net.java.dev.jets3t</groupId>
						<artifactId>jets3t</artifactId>
						<version>0.7.2</version>
					  </dependency>
					  <dependency>
						<groupId>org.apache.ant</groupId>
						<artifactId>ant</artifactId>
						<version>1.7.0</version>
					  </dependency>
					  <dependency>
						<groupId>org.apache.ant</groupId>
						<artifactId>ant-apache-regexp</artifactId>
						<version>1.7.0</version>
					  </dependency>
					</dependencies>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<configuration>
						<junitArtifactName>junit:junit</junitArtifactName>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
		  <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
                <version>2.7</version>
				<configuration>
					<skip>true</skip>
				</configuration>
		  </plugin>
		</plugins>
	</build>
	<reporting>
		<excludeDefaults>true</excludeDefaults>
		<plugins>
		  <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-project-info-reports-plugin</artifactId>
			<version>2.1.1</version>
		  </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<version>2.3</version>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jdepend-maven-plugin</artifactId>
                <version>2.0-beta-2</version>
			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
                <version>2.8.1</version>
				<reportSets>
					<reportSet>
						<id>html</id>
						<reports>
							<report>javadoc</report>
						</reports>
					</reportSet>
				</reportSets>
				<configuration>
					<aggregate>true</aggregate>
					<breakiterator>true</breakiterator>
					<links>
						<link>http://download.oracle.com/javaee/5/api</link>
						<link>http://download.oracle.com/javase/1.5.0/docs/api</link>
						<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link>
						<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
						<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link>
						<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link>
						<link>http://jakarta.apache.org/commons/pool/apidocs/</link>
						<link>http://jakarta.apache.org/commons/logging/apidocs/</link>
						<link>http://junit.sourceforge.net/javadoc/</link>
						<link>http://logging.apache.org/log4j/docs/api/</link>
						<link>http://jakarta.apache.org/regexp/apidocs/</link>
						<link>http://jakarta.apache.org/velocity/api/</link>
						<link>http://static.springsource.org/spring/docs/3.1.2.RELEASE/javadoc-api/</link>
						<link>http://static.springframework.org/spring-batch/apidocs/</link>
						<link>http://static.springframework.org/spring-ws/site/apidocs/</link>
					</links>
					<excludePackageNames>test.*:*.example:*.sample</excludePackageNames>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jxr-plugin</artifactId>
                <version>2.3</version>
			</plugin>
		</plugins>
	</reporting>
	<developers>
		<developer>
			<id>dsyer</id>
			<name>Dave Syer</name>
			<email>david.syer@springsource.com</email>
		</developer>
		<developer>
			<id>nebhale</id>
			<name>Ben Hale</name>
			<email>ben.hale@springsource.com</email>
			<timezone>0</timezone>
		</developer>
		<developer>
			<id>lward</id>
			<name>Lucas Ward</name>
			<email>lucas.l.ward@accenture.com</email>
		</developer>
		<developer>
			<id>robokaso</id>
			<name>Robert Kasanicky</name>
			<email>robokaso@gmail.com</email>
		</developer>
		<developer>
			<id>trisberg</id>
			<name>Thomas Risberg</name>
			<email>thomas.risberg@springsource.com</email>
		</developer>
		<developer>
			<id>dhgarrette</id>
			<name>Dan Garrette</name>
			<email>dhgarrette@gmail.com</email>
		</developer>
		<developer>
			<id>mminella</id>
			<name>Michael Minella</name>
			<email>mminella@vmware.com</email>
		</developer>
	</developers>
	<pluginRepositories>
<!-- 		<pluginRepository>
			<id>com.springsource.repository.bundles.milestone</id>
			<name> SpringSource Enterprise Bundle Repository - SpringSource Bundle Milestones</name>
			<url>http://repository.springsource.com/maven/bundles/milestone</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
 -->		<pluginRepository>
			<id>com.springsource.repository.bundles.snapshot</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Snapshots</name>
			<url>http://repository.springsource.com/maven/bundles/snapshot</url>
		</pluginRepository>
		<pluginRepository>
			<id>com.springsource.repository.bundles.release</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/release</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
</project>
