From 376715c1af15de3e5d899b83be1d43a1813850cb Mon Sep 17 00:00:00 2001 From: Katerina Date: Tue, 30 May 2023 13:54:45 +0300 Subject: [PATCH] spring-boot-2.7.10 applied in all spring-boo libraries --- pom.xml | 9 +++++---- .../java/eu/dnetlib/validatorapi/routes/OaiPmhRoute.java | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index a6ef42b..9eea48e 100644 --- a/pom.xml +++ b/pom.xml @@ -25,11 +25,10 @@ 11 11 11 - 1.5.22.RELEASE + 2.7.10 3.20.5 - - + @@ -42,16 +41,19 @@ org.springframework.boot spring-boot-starter-web + ${spring-boot-version} org.springframework.boot spring-boot-starter-actuator + ${spring-boot-version} org.springframework.boot spring-boot-starter-data-jpa + ${spring-boot-version} @@ -83,7 +85,6 @@ ${apache.camel.version} - diff --git a/src/main/java/eu/dnetlib/validatorapi/routes/OaiPmhRoute.java b/src/main/java/eu/dnetlib/validatorapi/routes/OaiPmhRoute.java index a1e14ec..7ff4a97 100644 --- a/src/main/java/eu/dnetlib/validatorapi/routes/OaiPmhRoute.java +++ b/src/main/java/eu/dnetlib/validatorapi/routes/OaiPmhRoute.java @@ -11,7 +11,7 @@ import org.apache.camel.builder.RouteBuilder; public class OaiPmhRoute extends RouteBuilder { - private String oaiEndpoint = "oaipmh://http://repositorium.sdum.uminho.pt/oai/request"; + private String oaiEndpoint; private AbstractOpenAireProfile profile; private long maxNumberOfRecords = 0; @@ -38,6 +38,7 @@ public class OaiPmhRoute extends RouteBuilder { .setProperty("totalRecords", constant(0)) .loopDoWhile().simple("${exchangeProperty.totalRecords} < 10") .split(xpath("//*[local-name()='record']")) + .log("${exchangeProperty.totalRecords}") // .log("\n\n\n----------------\n\n\n\n\n\n${body}\n\n\n----------------\n\n\n\n\n\n") .process(new XmlProcessor(profile, validationJob, validationIssueRepository, validationResultRepository)) .end().to("direct:end");