Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jetty running via Maven on OSX - prevent "Launcher" app from opening

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?

like image 311
dstarh Avatar asked Apr 27 '12 18:04

dstarh


1 Answers

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)

like image 114
ianpojman Avatar answered Oct 11 '22 10:10

ianpojman