我拆过的坑cycx

查询一下!

cannot resolve plugin org.mortbay.jetty:maven-jetty-plugin阿里云仓库对应地址没有jetty插件

 

之前按照下面这个在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>

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.