之前按照下面这个在pom.xml中配置jetty插件,总是报错说阿里云仓库没有
<!--jetty插件-->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<stopPort>9988</stopPort>
<stopKey>foo</stopKey>
<scanIntervalSeconds>5</scanIntervalSeconds>
<connectors>
<!--<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">-->
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8088</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<webAppConfig>
<contextPath>/</contextPath>
<defaultsDescriptor></defaultsDescriptor>
</webAppConfig>
</configuration>
</plugin>
改成下面这个之后,maven 能引入了,原因未知
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.14.v20161028</version>
<configuration>
<webAppConfig>
<maxFormContentSize>600000</maxFormContentSize>
<contextPath>/file</contextPath>
</webAppConfig>
<scanIntervalSeconds>3</scanIntervalSeconds>
<webAppSourceDirectory>${basedir}/webapp/</webAppSourceDirectory>
<stopPort>9998</stopPort>
<stopKey>stop</stopKey>
<jettyConfig/>
<systemProperties>
<systemProperty>
<name>UrlEncoded</name>
<value>GBK</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>