Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove "No main class detected" warning in SBT

Tags:

sbt

I have a multi-module SBT project. Some of the modules produce JARs with main classes and can be started with java -jar but most don't.

However when I run (or compile, or anything else) one of the modules (sbt foo/run) I get a warning per library module.

[warn] No main class detected

How can I remove those warnings?

like image 513
sortega Avatar asked Mar 17 '23 15:03

sortega


1 Answers

This warning is considered a bug in sbt 0.13.7 and it will be removed in sbt 0.13.8.

like image 173
Eugene Yokota Avatar answered Apr 24 '23 01:04

Eugene Yokota