We have a java app that uses an embedded jetty container. When we start it via maven on OSX via mvn jetty:run a java app opens with the title org.codehaus.plexus.classworlds.launcher.Launcher
. When it opens it steals focus from whatever is in the foreground. Is there any way to prevent it?
Run with
-Djava.awt.headless=true
You could add this in MAVEN_OPTS on your Mac machine's environment (i.e., in ~/.profile or whatever your shell looks for)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With