Note that there are some explanatory texts on larger screens.

plurals
  1. POmaven-jetty-plugin can't bind address under linux
    text
    copied!<p>I have added a maven-jetty plugin to my pom as follows:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;maven-jetty-plugin&lt;/artifactId&gt; &lt;version&gt;6.1.16&lt;/version&gt; &lt;configuration&gt; &lt;connectors&gt; &lt;connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"&gt; &lt;host&gt;${jetty.host}&lt;/host&gt; &lt;port&gt;${jetty.port}&lt;/port&gt; &lt;maxIdleTime&gt;30000&lt;/maxIdleTime&gt; &lt;/connector&gt; &lt;/connectors&gt; &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt; &lt;stopPort&gt;${jetty.stop.port}&lt;/stopPort&gt; &lt;stopKey&gt;STOP&lt;/stopKey&gt; &lt;contextPath&gt;${jetty.contextpath}&lt;/contextPath&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;start-jetty&lt;/id&gt; &lt;phase&gt;pre-integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;stop&lt;/goal&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;scanIntervalSeconds&gt;0&lt;/scanIntervalSeconds&gt; &lt;daemon&gt;true&lt;/daemon&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;stop-jetty&lt;/id&gt; &lt;phase&gt;post-integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;stop&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>This works fine under windows 7 but if I try to execute it under Linux (SuSE) it always fails with address already in use.</p> <p>I tried localhost and 127.0.0.1 as jetty.host and a few numbers as ports. I checked the ports on the linux system and they are all not in used by other services.</p> <p>I use maven 3.0.3 and JDK 1.6_29 on both systems. </p> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload