File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
devtools/config-doc-maven-plugin/src/main/java/io/quarkus/maven/config/doc Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,11 @@ private static List<Path> findTargetDirectories(Path scanDirectory) throws MojoE
276276 @ Override
277277 public FileVisitResult preVisitDirectory (Path dir , BasicFileAttributes attrs ) throws IOException {
278278 if (dir .endsWith (TARGET )) {
279- targets .add (dir );
279+ // we check if there is a POM around as it might happen that the target/ directory is still around
280+ // while the module has been dropped
281+ if (Files .exists (dir .resolve ("../pom.xml" ))) {
282+ targets .add (dir );
283+ }
280284
281285 // a target directory can contain target directories for test projects
282286 // so let's make sure we ignore whatever is nested in a target
You can’t perform that action at this time.
0 commit comments