286 lines
12 KiB
XML
286 lines
12 KiB
XML
<?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-simple-cli</artifactId>
|
|
<version>2.2.8.BUILD-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
<name>Commandline</name>
|
|
<description>This project is a command line batch sample from Spring Batch demonstrating a typical batch job.
|
|
The job can be invoked via "mvn exec:java" to see the job run from the command line.
|
|
During an "mvn package", a distribution archive in the format defined in src/main/assembly/descriptor.xml will
|
|
be created in the target directory which can be deployed and extracted to your target location of choice.
|
|
The ./bin/runJob.(sh|bat) script from the extracted deployment archive can be invoked to run the job.
|
|
</description>
|
|
<properties>
|
|
<spring.framework.version>3.2.9.RELEASE</spring.framework.version>
|
|
<spring.batch.version>2.2.8.BUILD-SNAPSHOT</spring.batch.version>
|
|
<dependency.locations.enabled>false</dependency.locations.enabled>
|
|
<junit.version>4.10</junit.version>
|
|
<compiler.target.version>1.6</compiler.target.version>
|
|
<compiler.source.version>1.6</compiler.source.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
<profiles>
|
|
<profile>
|
|
<id>staging</id>
|
|
<distributionManagement>
|
|
<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>bootstrap</id>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>Codehaus</id>
|
|
<url>http://repository.codehaus.org/</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</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>
|
|
</profile>
|
|
</profiles>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${spring.framework.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aop</artifactId>
|
|
<version>${spring.framework.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
<version>${spring.framework.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.batch</groupId>
|
|
<artifactId>spring-batch-core</artifactId>
|
|
<version>${spring.batch.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.batch</groupId>
|
|
<artifactId>spring-batch-infrastructure</artifactId>
|
|
<version>${spring.batch.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.batch</groupId>
|
|
<artifactId>spring-batch-test</artifactId>
|
|
<version>${spring.batch.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-dbcp</groupId>
|
|
<artifactId>commons-dbcp</artifactId>
|
|
<version>1.2.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>1.5.8</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>1.2.14</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>1.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hsqldb</groupId>
|
|
<artifactId>hsqldb</artifactId>
|
|
<version>2.2.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
<version>1.6.8</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
<version>1.6.8</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<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>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<inherited>false</inherited>
|
|
<configuration>
|
|
<descriptorRefs>
|
|
<descriptorRef>project</descriptorRef>
|
|
</descriptorRefs>
|
|
</configuration>
|
|
</plugin>
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings
|
|
only. It has no influence on the Maven build itself. -->
|
|
<plugin>
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
<version>1.0.0</version>
|
|
<configuration>
|
|
<lifecycleMappingMetadata>
|
|
<pluginExecutions>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<versionRange>[1.0,)</versionRange>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore />
|
|
</action>
|
|
</pluginExecution>
|
|
</pluginExecutions>
|
|
</lifecycleMappingMetadata>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>2.3.2</version>
|
|
<configuration>
|
|
<source>${compiler.source.version}</source>
|
|
<target>${compiler.target.version}</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>**/Abstract*.java</exclude>
|
|
</excludes>
|
|
<junitArtifactName>junit:junit</junitArtifactName>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<configuration>
|
|
<mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
|
|
<arguments>
|
|
<argument>classpath:/launch-context.xml</argument>
|
|
<argument>personJob</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.3</version>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/descriptor.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-distribution</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<index>false</index>
|
|
<manifest>
|
|
<mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
|
|
<addClasspath>true</addClasspath>
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<distributionManagement>
|
|
<downloadUrl>http://www.springframework.org/download</downloadUrl>
|
|
<site>
|
|
<id>staging</id>
|
|
<url>file:///${user.dir}/target/staging/org.springframework.batch.archetype/${project.artifactId}</url>
|
|
</site>
|
|
<repository>
|
|
<id>spring-release</id>
|
|
<name>Spring Release Repository</name>
|
|
<url>file:///${user.dir}/target/staging/release</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>spring-snapshot</id>
|
|
<name>Spring Snapshot Repository</name>
|
|
<url>file:///${user.dir}/target/staging/snapshot</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
</project>
|