繁体   English   中英

无法在 IntelliJ 上为我的 Maven 项目使用 lagom

[英]Cannot use lagom on IntelliJ for my Maven project

我开始了一个新的 Maven 项目,并尝试让lagom处理我的 Maven 项目。 在我的运行配置中,我在命令行下输入了lagom:runAll 但是,当我运行我的项目时,出现以下错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.578 s
[INFO] Finished at: 2020-01-17T11:25:31+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'lagom' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/andrea/.m2/repository), spring-milestones (https://repo.spring.io/milestone), spring-snapshots (https://repo.spring.io/snapshot), 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

有谁明白为什么我无法发现 lagom 图书馆? 在此先感谢您的帮助,干杯!

问题是默认情况下 Maven 对外部插件一无所知,这扩展到模块。 除非在 pom.xml (隐含地暗示任何父 poms)中如此说明,否则模块不知道其他模块中发生的事情。

您需要使用完整的工件名称调用 lagom,或者您需要在 pom.xml 中配置 lagom(最好在父 pom 中使用依赖管理)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM