zoukankan      html  css  js  c++  java
  • Maven 踩过的坑

    Jetty 运行报错:

    [INFO] ------------------------------------------------------------------------
    [ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:UsersHUI.m2
    epository), alimaven (http://maven.aliyun.com/nexus/content/groups/public/)] -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

    解决方法:

    在项目中pom.xml文件中添加以下代码

            <!-- 配置加入jetty服务器,开发时我们一般使用jetty服务器 -->
            <plugin>
              <groupId>org.mortbay.jetty</groupId>
              <artifactId>jetty-maven-plugin</artifactId>
              <configuration>
                <webApp>
                  <contextPath>/</contextPath>
                </webApp>
              </configuration>
            </plugin>
  • 相关阅读:
    CF1416D Graph and Queries
    Wordpress建站系统相关
    微观经济学
    Preface
    Thread pool in chromium
    [fllutter engine] 并发消息队列
    bugku misc
    python 3.1学习
    HTML&CSS
    DOM技术点
  • 原文地址:https://www.cnblogs.com/hlikex/p/12628145.html
Copyright © 2011-2022 走看看