Search code examples
eclipsemavenpluginsjettyzk

jetty-maven-plugin :stop > The parameters 'stopKey', 'stopPort' are missing or invalid


I create and run simple project with following link address:

Create and Run Your First ZK Application with Eclipse and Maven.

But When I build... I have below error:

[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:7.6.8.v20121106:stop (default-cli) on project asd: The parameters 'stopKey', 'stopPort' for goal org.mortbay.jetty:jetty-maven-plugin:7.6.8.v20121106:stop are missing or invalid -> [Help 1]


Solution

  • You can replace the settings of pom.xml with the following.

    <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>7.6.8.v20121106</version>
        <configuration>
            <webAppConfig>
                <contextPath>/${project.artifactId}</contextPath>
                <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
            </webAppConfig>
            <scanIntervalSeconds>5</scanIntervalSeconds>
        </configuration>
    </plugin>