Maven 在pom.xml中配置Jetty出现'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded异常

来源:互联网 发布:二维码在线设计软件 编辑:程序博客网 时间:2024/05/19 14:36

pom.xml

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

解决方法:

<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">

改成

<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
阅读全文
0 0