Open kkeller-jmt opened 4 years ago
@kkeller-jmt It looks like a test case issue with JDK 15. You can use openjdk or Oracle.
As a workaround, you can build without running the tests. Try mvn package -DskipTests
.
@kkeller-jmt It looks like a test case issue with JDK 15. You can use openjdk or Oracle.
As a workaround, you can build without running the tests. Try
mvn package -DskipTests
.
@beebs-systap Thanks - done.
I've got the following environment set up -
$ mvn -version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: C:\Users\kkeller2\apache-maven-3.6.3-bin\apache-maven-3.6.3 Java version: 15.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-15.0.1 Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
mvn clean install fails in the following way -
[INFO] Results: [INFO] [ERROR] Failures: [ERROR] Csv2RdfTest.checkNonExistingDirectory:105 expected: but was: [ERROR] Csv2RdfTest.checkNonExistingDirectoryWithCreateFails:173 expected: but was: alse> [ERROR] Csv2RdfTest.checkNonExistingFile:71 expected: but was: [ERROR] Csv2RdfTest.validateConfigParameter:217 expected: but was: [ERROR] Csv2RdfTest.validateInputParameter:241 expected: but was: [ERROR] Errors: [ERROR] Csv2RdfTest.checkDirectoryButIsFile:96 ▒ PatternSyntax Illegal/unsupported esc... [ERROR] Csv2RdfTest.validateOutputParameter:265 ▒ PatternSyntax Illegal/unsupported es... [ERROR] NeptuneCsvInputParserTest.missingFileIsRejected:75 ▒ PatternSyntax Illegal/uns... [INFO] [ERROR] Tests run: 152, Failures: 5, Errors: 3, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.308 s [INFO] Finished at: 2020-10-27T07:32:45-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (de fault-test) on project amazon-neptune-csv2rdf: There are test failures.
Here are the error details -
[ERROR] Tests run: 14, Failures: 5, Errors: 2, Skipped: 0, Time elapsed: 0.371 s <<< FAILURE! - in software.amazon.neptune.csv2rdf.Csv2RdfTest [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.checkDirectoryButIsFile Time elapsed: 0.00 4 s <<< ERROR! java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 58 Parameter input does not point to a directory: .src\test\inputDirectoryTest\ignore.txt ^ at software.amazon.neptune.csv2rdf.Csv2RdfTest.checkDirectoryButIsFile(Csv2RdfTest.java :96) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.validateInputParameter Time elapsed: 0.201 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at software.amazon.neptune.csv2rdf.Csv2RdfTest.validateInputParameter(Csv2RdfTest.java: 241) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingDirectory Time elapsed: 0. 002 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingDirectory(Csv2RdfTest.ja va:105) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.validateOutputParameter Time elapsed: 0.02 9 s <<< ERROR! java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 71 Parameter does not point to a directory: .src\test\integration-test\integra tion-test.properties ^ at software.amazon.neptune.csv2rdf.Csv2RdfTest.validateOutputParameter(Csv2RdfTest.java :265) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.validateConfigParameter Time elapsed: 0.02 7 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at software.amazon.neptune.csv2rdf.Csv2RdfTest.validateConfigParameter(Csv2RdfTest.java :217) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingFile Time elapsed: 0.002 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingFile(Csv2RdfTest.java:71 ) [ERROR] software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingDirectoryWithCreateFails T ime elapsed: 0.003 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at software.amazon.neptune.csv2rdf.Csv2RdfTest.checkNonExistingDirectoryWithCreateFails (Csv2RdfTest.java:173)
Typical error is:
CSV to RDF conversion failed. Directory for parameter does not exist: C:\Users\kkeller2\Neptune\tools\amazo n-neptune-csv-to-rdf-converter\target\non-existing-directory
Thank you,