diff --git a/pom.xml b/pom.xml index e05ecfaaf79120da2c84fb2659f6bbe34d751d0e..f24e6e4ecc98629a1058b2828df040da8211a589 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ <dependency> <groupId>org.apache.jena</groupId> <artifactId>jena-core</artifactId> - <version>4.10.0</version> + <version>5.2.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.dom4j/dom4j --> @@ -34,7 +34,7 @@ <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> - <version>1.5.6</version> + <version>1.5.12</version> </dependency> <!-- https://mvnrepository.com/artifact/jaxen/jaxen --> @@ -45,12 +45,11 @@ <scope>runtime</scope> </dependency> - <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.10.2</version> + <version>5.11.3</version> <scope>test</scope> </dependency> @@ -65,13 +64,13 @@ <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> - <version>5.3.1</version> + <version>5.4.1</version> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> - <version>5.11.0</version> + <version>5.14.2</version> <scope>test</scope> </dependency> @@ -84,7 +83,7 @@ <dependency> <groupId>uk.org.webcompere</groupId> <artifactId>system-stubs-jupiter</artifactId> - <version>2.1.6</version> + <version>2.1.7</version> <scope>test</scope> </dependency> @@ -92,13 +91,13 @@ <dependency> <groupId>io.undertow</groupId> <artifactId>undertow-core</artifactId> - <version>2.3.13.Final</version> + <version>2.3.18.Final</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.10.2</version> + <version>5.11.3</version> <scope>test</scope> </dependency> @@ -106,8 +105,16 @@ <dependency> <groupId>org.locationtech.jts</groupId> <artifactId>jts-core</artifactId> - <version>1.19.0</version> + <version>1.20.0</version> + </dependency> + + <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.17.0</version> </dependency> + </dependencies> <build> @@ -170,11 +177,12 @@ <plugin> <groupId>org.owasp</groupId> <artifactId>dependency-check-maven</artifactId> - <version>8.2.1</version> + <version>11.1.0</version> <configuration> <failBuildOnCVSS>8</failBuildOnCVSS> <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> <failOnError>true</failOnError> + <nvdApiKey>${env.NVD_API_KEY}</nvdApiKey> </configuration> <executions> <execution> diff --git a/src/test/java/de/landsh/opendata/csw2dcat/MDMetadata2DatasetTests.java b/src/test/java/de/landsh/opendata/csw2dcat/MDMetadata2DatasetTests.java index 492a2caae51931d48d4cb80f12340daa20845190..f57d4798f2965cc704248dd768c1dda6cfad4e84 100644 --- a/src/test/java/de/landsh/opendata/csw2dcat/MDMetadata2DatasetTests.java +++ b/src/test/java/de/landsh/opendata/csw2dcat/MDMetadata2DatasetTests.java @@ -168,9 +168,9 @@ public class MDMetadata2DatasetTests { assertTrue(result.hasProperty(DCAT.theme, model.createResource("http://publications.europa.eu/resource/authority/data-theme/REGI"))); assertTrue(result.hasProperty(DCTerms.issued)); - assertEquals("2021-03-19^^http://www.w3.org/2001/XMLSchema#date", result.getProperty(DCTerms.issued).getLiteral().toString()); + assertEquals("\"2021-03-19\"^^xsd:date", result.getProperty(DCTerms.issued).getLiteral().toString()); assertTrue(result.hasProperty(DCTerms.modified)); - assertEquals("2022-05-31^^http://www.w3.org/2001/XMLSchema#date", result.getProperty(DCTerms.modified).getLiteral().toString()); + assertEquals("\"2022-05-31\"^^xsd:date", result.getProperty(DCTerms.modified).getLiteral().toString()); assertTrue(result.hasProperty(DCTerms.license, model.createResource("http://dcat-ap.de/def/licenses/dl-by-de/2.0"))); assertTrue(result.hasLiteral(DCATAPde.licenseAttributionByText, "© GDI-SH")); } @@ -421,7 +421,7 @@ public class MDMetadata2DatasetTests { // The modification date of the dataset itself is 2022-05-05. The modification date of the service is 2023-06-01. // The resulting modification date of the dataset is the latest modification date of one of its coupled services. - assertEquals("2023-06-01^^http://www.w3.org/2001/XMLSchema#date", result.getProperty(DCTerms.modified).getLiteral().toString()); + assertEquals("\"2023-06-01\"^^xsd:date", result.getProperty(DCTerms.modified).getLiteral().toString()); final Map<String, Resource> distributionMap = collectDistributions(result);