maciejwalkowiak / just

Magical 🪄 command line toolkit for developing 🍃 Spring Boot apps
312 stars 6 forks source link

Just run fails if module without scr folder exist #45

Open zelaskoa opened 1 year ago

zelaskoa commented 1 year ago

Hi, when running "just run mymodule" then i get the following error. Problem is that i have a module without src folder

java.nio.file.NoSuchFileException: "path/to/my/project/coverage/src/main" at java.base@17.0.5/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at java.base@17.0.5/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148) at java.base@17.0.5/java.nio.file.Files.readAttributes(Files.java:1851) at java.base@17.0.5/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220) at java.base@17.0.5/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277) at java.base@17.0.5/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:323) at java.base@17.0.5/java.nio.file.Files.walkFileTree(Files.java:2804) at java.base@17.0.5/java.nio.file.Files.walkFileTree(Files.java:2882) at io.methvin.watcher.PathUtils.recursiveVisitFiles(PathUtils.java:108) at io.methvin.watcher.PathUtils.initWatcherState(PathUtils.java:78) at io.methvin.watcher.DirectoryWatcher.(DirectoryWatcher.java:190) at io.methvin.watcher.DirectoryWatcher$Builder.build(DirectoryWatcher.java:122) at com.maciejwalkowiak.just.command.run.maven.FileSystemWatcherImpl.watch(FileSystemWatcherImpl.java:27) at com.maciejwalkowiak.just.command.run.maven.MultiModuleRunner.run(MultiModuleRunner.java:47) at com.maciejwalkowiak.just.command.run.RunCommand.execute(RunCommand.java:103) at com.maciejwalkowiak.just.command.BaseCommand.call(BaseCommand.java:49) at com.maciejwalkowiak.just.command.BaseCommand.call(BaseCommand.java:16) at picocli.CommandLine.executeUserObject(CommandLine.java:2041) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at com.maciejwalkowiak.just.PicoCliRunner.run(PicoCliRunner.java:24) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:767) at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:751) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) at com.maciejwalkowiak.just.Just.runSpringApp(Just.java:60) at com.maciejwalkowiak.just.Just.main(Just.java:43)