From 8c08aa84f774ca06a267edd27359077f40af55a8 Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Thu, 13 Jul 2017 10:32:34 -0500 Subject: [PATCH] Fixed build after 2.0 PR merge The 2.0 PR merge missed a couple items that broke the build. Specifically the maven plugin repository was not specified so the snapshots for the Spring Boot Maven Plugin could not be found. Also the ordering of the parameters in the Hibernate generated SQL was different so the JpaApplicationTests were failing. --- spring-cloud-task-samples/batch-job/pom.xml | 29 +++++++++- spring-cloud-task-samples/jpa-sample/pom.xml | 35 ++++++++++-- .../java/io/spring/JpaApplicationTests.java | 2 +- spring-cloud-task-samples/tasksink/pom.xml | 1 - spring-cloud-task-samples/timestamp/pom.xml | 54 +++++++++++++++++++ 5 files changed, 114 insertions(+), 7 deletions(-) diff --git a/spring-cloud-task-samples/batch-job/pom.xml b/spring-cloud-task-samples/batch-job/pom.xml index ec977261..07d8182d 100644 --- a/spring-cloud-task-samples/batch-job/pom.xml +++ b/spring-cloud-task-samples/batch-job/pom.xml @@ -54,7 +54,34 @@ test - + + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/release + + false + + + + diff --git a/spring-cloud-task-samples/jpa-sample/pom.xml b/spring-cloud-task-samples/jpa-sample/pom.xml index f067acc1..36f28f82 100644 --- a/spring-cloud-task-samples/jpa-sample/pom.xml +++ b/spring-cloud-task-samples/jpa-sample/pom.xml @@ -19,7 +19,7 @@ io.spring.cloud jpa-sample jar - 1.2.2.BUILD-SNAPSHOT + 2.0.0.BUILD-SNAPSHOT To show users how to enable a task with a JPA application. Spring Cloud Task JPA Sample Application @@ -27,13 +27,13 @@ org.springframework.boot spring-boot-starter-parent - 1.5.2.RELEASE + 2.0.0.BUILD-SNAPSHOT UTF-8 - 1.7 + 1.8 @@ -41,7 +41,7 @@ org.springframework.cloud spring-cloud-task-dependencies - 1.2.2.BUILD-SNAPSHOT + 2.0.0.BUILD-SNAPSHOT pom import @@ -72,6 +72,33 @@ + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/release + + false + + + + diff --git a/spring-cloud-task-samples/jpa-sample/src/test/java/io/spring/JpaApplicationTests.java b/spring-cloud-task-samples/jpa-sample/src/test/java/io/spring/JpaApplicationTests.java index 4a36565b..fb188a86 100644 --- a/spring-cloud-task-samples/jpa-sample/src/test/java/io/spring/JpaApplicationTests.java +++ b/spring-cloud-task-samples/jpa-sample/src/test/java/io/spring/JpaApplicationTests.java @@ -92,7 +92,7 @@ public class JpaApplicationTests { @Test public void testBatchJobApp() throws Exception { - final String INSERT_MESSAGE = "Hibernate: insert into task_run_output (id, output) values (null, ?)"; + final String INSERT_MESSAGE = "Hibernate: insert into task_run_output ("; SpringApplication.run(JpaApplication.class, "--spring.datasource.url=" + DATASOURCE_URL, "--spring.datasource.username=" + DATASOURCE_USER_NAME, "--spring.datasource.driverClassName=" + DATASOURCE_DRIVER_CLASS_NAME, diff --git a/spring-cloud-task-samples/tasksink/pom.xml b/spring-cloud-task-samples/tasksink/pom.xml index 606b5028..1ac59df5 100644 --- a/spring-cloud-task-samples/tasksink/pom.xml +++ b/spring-cloud-task-samples/tasksink/pom.xml @@ -60,7 +60,6 @@ spring-boot-starter-test test - diff --git a/spring-cloud-task-samples/timestamp/pom.xml b/spring-cloud-task-samples/timestamp/pom.xml index 61c7ff76..53eee22e 100644 --- a/spring-cloud-task-samples/timestamp/pom.xml +++ b/spring-cloud-task-samples/timestamp/pom.xml @@ -63,6 +63,60 @@ + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/release + + false + + + + + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/release + + false + + + +