Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
埋め込みの jetty コンテナーを使用する Java アプリがあります。mvn jetty:run を介して OSX で maven を介して起動すると、Java アプリがタイトルで開きますorg.codehaus.plexus.classworlds.launcher.Launcher。開くと、フォアグラウンドにあるものからフォーカスが奪われます。それを防ぐ方法はありますか?
org.codehaus.plexus.classworlds.launcher.Launcher
で実行
-Djava.awt.headless=true
これを Mac マシンの環境の MAVEN_OPTS に追加できます (つまり、 ~/.profile またはシェルが探すもの)。