【问题标题】:Vaadin no plugin found for prefix jettyVaadin 找不到前缀码头的插件
【发布时间】:2019-08-09 06:39:52
【问题描述】:

晚上好,我正在尝试安装 vaadin 框架并将其集成到我的 Eclipse 中,但是每次我尝试运行 maven 构建时,我都会不断收到此错误块,主要是前缀 jetty 无法识别,我不知道如何处理那个。请帮忙

  [INFO] Scanning for projects...
    [WARNING] The project com.gmail.khaled:my-starter-project:pom:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] My Starter Project                                                 [pom]
[INFO] My Starter Project-backend                                         [jar]
[INFO] My Starter Project-ui                                              [war]
[INFO] Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloaded from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 13 kB/s)
[INFO] Downloaded from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 18 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] My Starter Project 1.0-SNAPSHOT .................... SKIPPED
[INFO] My Starter Project-backend ......................... SKIPPED
[INFO] My Starter Project-ui 1.0-SNAPSHOT ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.739 s
[INFO] Finished at: 2019-03-18T21:39:18+02:00
[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:\Users\hp\.m2\repository), vaadin-prereleases (https://maven.vaadin.com/vaadin-prereleases), central (https://repo.maven.apache.org/maven2)] -> [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

【问题讨论】:

    标签: java eclipse maven vaadin


    【解决方案1】:

    此错误消息告诉您,在您尝试运行 jetty:run 目标的 pom.xml 中没有定义 maven Jetty 插件。因此它失败了。通常多模块 maven 项目中的约定是将 Jetty 插件放置到实际的应用程序模块中。在您的情况下,它可能是“My Starter Project-ui”模块。如果不存在,则需要将其添加到那里。

    【讨论】:

    • 我该怎么做呢?我对 maven 或 pom 文件没有太多经验
    • 这不是同样的目的吗? 9.4.11.v20180605
    • 在你的 pom.xml 中应该有部分 ... 并且你需要有类似下面的内容: org.eclipse.jetty jetty-maven-plugin ${jetty.plugin.version}
    【解决方案2】:

    我遇到了同样的问题。在现场目标中创建调试配置时

    不要输入:jetty:run

    改为输入:spring-boot:run

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-25
      • 2018-01-29
      • 1970-01-01
      • 2015-01-22
      • 1970-01-01
      • 2015-02-28
      • 2011-09-13
      • 2018-04-28
      相关资源
      最近更新 更多