From cafc7046c1ea3ba61dc72e6000f08fd313fdd55b Mon Sep 17 00:00:00 2001 From: Chris Schaefer Date: Thu, 27 Feb 2014 14:20:03 -0500 Subject: [PATCH] BATCH-1998: Create JSR CI Build * Added new module "spring-batch-jsr352-tck" containing a maven configuration to run the TCK tests. * Added new profile "jsr-352-tck" to run the TCK tests * The TCK build relys on the following environment variables being set: * JSR_352_TCK_LIBS = the directory used to store libraries used during the TCK execution * JSR_352_TCK_HOME = the directory containing the pristine version of the JSR-352 TCK * JSR_352_BATCH_IMPL_CLASSES = the : seperated jars to be used and passed to the batch.impl.classes property of $JSR_352_TCK_HOME/jsr352-tck.properties. These are typically the paths to the JAR's located in $JSR_352_TCK_LIBS TCK tests can be invoked by activating the jsr-352-tck profile. At this time, if any errors occur while invoking the TCK ant build, the maven build will continue. See https://java.net/bugzilla/show_bug.cgi?id=5833 for more details. A work around is to modify: $JSR_352_TCK_HOME/build.xml adding the following after and before --- pom.xml | 63 +++++----- spring-batch-jsr352-tck/pom.xml | 203 ++++++++++++++++++++++++++++++++ 2 files changed, 236 insertions(+), 30 deletions(-) create mode 100644 spring-batch-jsr352-tck/pom.xml diff --git a/pom.xml b/pom.xml index 94063f52b..e7d4244ea 100644 --- a/pom.xml +++ b/pom.xml @@ -439,6 +439,12 @@ + + jsr-352-tck + + spring-batch-jsr352-tck + + @@ -466,23 +472,23 @@ - - org.apache.maven.plugins - maven-release-plugin - 2.3 - - - org.apache.maven.plugins - maven-site-plugin - 2.2 - - - org.apache.maven.wagon - wagon-ssh - 1.0-beta-7 - - - + + org.apache.maven.plugins + maven-release-plugin + 2.3 + + + org.apache.maven.plugins + maven-site-plugin + 2.2 + + + org.apache.maven.wagon + wagon-ssh + 1.0-beta-7 + + + org.apache.maven.plugins maven-antrun-plugin @@ -523,7 +529,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.7 + 2.7 true @@ -546,11 +552,11 @@ org.codehaus.mojo jdepend-maven-plugin - 2.0-beta-2 + 2.0-beta-2 maven-javadoc-plugin - 2.8.1 + 2.8.1 html @@ -585,7 +591,7 @@ org.apache.maven.plugins maven-jxr-plugin - 2.3 + 2.3 @@ -626,17 +632,14 @@ Michael Minella mminella@vmware.com + + cschaefer + Chris Schaefer + cschaefer@gopivotal.com + - + com.springsource.repository.bundles.snapshot SpringSource Enterprise Bundle Repository - SpringSource Bundle Snapshots http://repository.springsource.com/maven/bundles/snapshot diff --git a/spring-batch-jsr352-tck/pom.xml b/spring-batch-jsr352-tck/pom.xml new file mode 100644 index 000000000..363cec244 --- /dev/null +++ b/spring-batch-jsr352-tck/pom.xml @@ -0,0 +1,203 @@ + + + 4.0.0 + spring-batch-jsr352-tck + pom + JSR-352-TCK + Executes the JSR-352-TCK suite + http://docs.spring.io/spring-batch/${project.artifactId} + + org.springframework.batch + spring-batch-parent + 3.0.0.BUILD-SNAPSHOT + ../spring-batch-parent + + + UTF-8 + 4.0.2.RELEASE + ${env.JSR_352_TCK_LIBS} + ${env.JSR_352_TCK_HOME} + + + + javax.batch + javax.batch-api + + + org.springframework + spring-core + + + org.springframework + spring-context + + + org.springframework + spring-beans + + + commons-logging + commons-logging-api + 1.1 + + + org.springframework + spring-aop + + + org.springframework + spring-tx + + + org.springframework.retry + spring-retry + + + org.hsqldb + hsqldb + + + org.springframework + spring-jdbc + + + com.thoughtworks.xstream + xstream + + + org.codehaus.jettison + jettison + + + commons-dbcp + commons-dbcp + 1.4 + + + org.apache.derby + derby + + + commons-pool + commons-pool + 1.5.4 + + + org.springframework.batch + spring-batch-core + ${project.version} + + + org.springframework.batch + spring-batch-infrastructure + ${project.version} + + + org.apache + ant-contrib + 0.6 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${jsr352.tck.libs.dir} + true + true + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.5 + + + prepare-package + + + + + + ${jsr352.tck.libs.dir} + + **/* + + false + + + + + + maven-antrun-plugin + 1.7 + + + ant + prepare-package + + run + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.3.1 + + + enforce-property + + enforce + + + + + JSR_352_TCK_LIBS + JSR_352_TCK_LIBS environment variable must be set! + + + JSR_352_TCK_HOME + JSR_352_TCK_HOME environment variable must be set! + + + JSR_352_BATCH_IMPL_CLASSES + JSR_352_BATCH_IMPL_CLASSES environment variable must be set! + + + true + + + + + + +