Skip to content

Commit

Permalink
Add .mvn directories to IT tests projects that lack one
Browse files Browse the repository at this point in the history
Some of the integration tests to do not have `.mvn` directories and
search up the project structure until they find the `.mvn` directory
of the root project.

This change adds `.mvn` directories with empty `maven.config` files so
that the sample projects in VCS will be as close as possible to those
executed during integration testing
  • Loading branch information
clayburn committed Jun 9, 2023
1 parent ec9f160 commit bb32ac2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ public static MvndResource create(
}
});
}

final Path dotMvn = testExecutionDir.resolve(".mvn");
if (!Files.exists(dotMvn)) {
Files.createDirectories(dotMvn);
}
}
final Path multiModuleProjectDirectory =
Paths.get(DaemonParameters.findDefaultMultimoduleProjectDirectory(testExecutionDir));
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit bb32ac2

Please sign in to comment.