Jetty running via Maven on OSX - prevent "Launcher" app from opening
java, jetty, macos, maven
Solution
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)
Problem
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?