<?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.0.4.RELEASE</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://static.springframework.org/spring-batch</url>
	<organization>
		<name>SpringSource</name>
		<url>http://www.springsource.com</url>
	</organization>
	<scm>
		<url>https://fisheye.springframework.org/browse/spring-batch/tags/2.0.4.RELEASE</url>
		<connection>scm:svn:https://src.springframework.org/svn/spring-batch/tags/2.0.4.RELEASE</connection>
		<developerConnection>scm:svn:https://src.springframework.org/svn/spring-batch/tags/2.0.4.RELEASE</developerConnection>
	</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>
	<profiles>
		<profile>
			<id>all</id>
			<modules>
				<module>spring-batch-samples</module>
				<module>archetypes</module>
				<module>spring-batch-infrastructure-tests</module>
				<module>spring-batch-integration</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>
						</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>samples</id>
			<modules>
				<module>spring-batch-infrastructure-tests</module>
				<module>spring-batch-samples</module>
				<module>archetypes</module>
			</modules>
		</profile>
		<profile>
			<id>central</id>
			<distributionManagement>
				<repository>
					<id>spring-sourceforge</id>
					<name>Spring Sourceforge Repository</name>
					<url>file:///${user.dir}/../sourceforge</url>
				</repository>
			</distributionManagement>
		</profile>
		<profile>
			<id>staging</id>
			<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>
		</profile>
		<profile>
			<id>snapshots</id>
			<pluginRepositories>
				<pluginRepository>
					<id>apache-snapshots</id>
					<url>http://people.apache.org/maven-snapshot-repository</url>
				</pluginRepository>
			</pluginRepositories>
			<repositories>
				<repository>
					<id>apache-snapshot</id>
					<name>Apache Foundation Snapshot Repository</name>
					<url>http://people.apache.org/maven-snapshot-repository</url>
				</repository>
			</repositories>
		</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/2.0.x</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>2.0.0.RELEASE</version>
			</extension>
		</extensions>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>2.0</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<dependencies>
						<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>
	</build>
	<reporting>
		<excludeDefaults>true</excludeDefaults>
		<plugins>
			<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>
			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<reportSets>
					<reportSet>
						<id>html</id>
						<reports>
							<report>javadoc</report>
						</reports>
					</reportSet>
				</reportSets>
				<configuration>
					<aggregate>true</aggregate>
					<breakiterator>true</breakiterator>
					<links>
						<link>http://java.sun.com/j2ee/1.4/docs/api</link>
						<link>http://java.sun.com/j2se/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.springframework.org/spring/docs/2.5.x/api/</link>
						<link>http://static.springframework.org/spring-batch/apidocs/</link>
						<link>http://static.springframework.org/spring-ws/site/apidocs/</link>
					</links>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jxr-plugin</artifactId>
			</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>
	</developers>
    <repositories>
      <repository>
        <id>jvnet</id>
        <name>Java Dev Net Repository</name>
        <url>http://download.java.net/maven/2/</url>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
      </repository>
    </repositories>
	<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>
	</pluginRepositories>
</project>
