Skip to content

Commit fd91856

Browse files
authored
Merge pull request #737 from jschneider/bugfix/check-for-main-class
add check for main class
2 parents b31bfda + 2b6d6af commit fd91856

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

jooby-maven-plugin/src/main/java/org/jooby/RouteProcessorMojo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public class RouteProcessorMojo extends AbstractMojo {
4848

4949
@Override
5050
public void execute() throws MojoExecutionException, MojoFailureException {
51+
if (mainClass == null) {
52+
throw new MojoExecutionException("main class not configured");
53+
}
54+
5155
try {
5256
Path srcdir = new File(mavenProject.getBuild().getSourceDirectory()).toPath();
5357
Path bindir = new File(mavenProject.getBuild().getOutputDirectory()).toPath();

0 commit comments

Comments
 (0)