diff --git a/openapi-maven-plugin/pom.xml b/openapi-maven-plugin/pom.xml
index 8ef2b48..485d048 100644
--- a/openapi-maven-plugin/pom.xml
+++ b/openapi-maven-plugin/pom.xml
@@ -62,7 +62,7 @@
2.15.3
2.1.1
3.1.0
- 0.11.0
+ 0.13.1
3.26.0
@@ -117,6 +117,12 @@
${itf.version}
test
+
+ commons-io
+ commons-io
+ 2.16.1
+ test
+
diff --git a/openapi-maven-plugin/src/test/java/io/github/kbuntrock/it/BasicIT.java b/openapi-maven-plugin/src/test/java/io/github/kbuntrock/it/BasicIT.java
index b7c54d7..100f819 100644
--- a/openapi-maven-plugin/src/test/java/io/github/kbuntrock/it/BasicIT.java
+++ b/openapi-maven-plugin/src/test/java/io/github/kbuntrock/it/BasicIT.java
@@ -25,14 +25,14 @@ public void nominal_test_case(final MavenExecutionResult result) throws IOExcept
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");
- final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
+ final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
final File generatedFile2 = new File(target, "spec-open-api-impl.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());
Assertions.assertTrue(generatedFile2.exists());
- final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
+ final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-basic-it/23.5.2/openapi-basic-it-23.5.2-spec-open-api.yml");
final File generatedArtifactFile2 = new File(m2Directory,
@@ -58,12 +58,12 @@ public void nominal_test_case_jaxrs(final MavenExecutionResult result) throws IO
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");
- final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
+ final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());
- final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
+ final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-basic-it-jaxrs/23.5.2/openapi-basic-it-jaxrs-23.5.2-spec-open-api.yml");
Assertions.assertTrue(generatedArtifactFile.exists());
@@ -82,12 +82,12 @@ public void sealed_class(final MavenExecutionResult result) throws IOException {
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");
- final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
+ final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());
- final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
+ final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-sealed-class-it/1.0.0/openapi-sealed-class-it-1.0.0-spec-open-api.yml");
Assertions.assertTrue(generatedArtifactFile.exists());