Jetty Plugin Ignoring command with incorrect key

10-09-2015

If you face this error, most probably you are using stop port 9999. Change this port any other port number such as 9966 as follows:

<plugins>
    <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <configuration>
            <scanIntervalSeconds>10</scanIntervalSeconds>
            <connectors>
                <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
                    <port>9090</port>
                    <maxIdleTime>60000</maxIdleTime>
                </connector>
            </connectors>
            <stopKey>foo</stopKey>
            <stopPort>9966</stopPort>
        </configuration>
    </plugin>
</plugins>

© 2019 All rights reserved. Codesenior.COM