【发布时间】:2019-11-03 21:25:23
【问题描述】:
如何将用于 Eclipse Spring STS 的 spring mvc github 源代码导入并运行到 IntelliJ 中?
我做了什么:
下载工作spring mvc项目源码压缩包https://github.com/simplyi/springmvc-ws?fbclid=IwAR2xKg6Oh0YHLuVJ2YEh2vt6cr1u3-4E4IzKnPMDJVc6nvI-BN6pRaPMKHQ
启动 Intellij 时的“导入”
不知道选择什么配置,所以出现了很多错误。所以,关注这个https://www.lagomframework.com/documentation/1.5.x/java/IntellijMaven.html?fbclid=IwAR3JaAw6dF2jX9k4fxxKg37j8mpNI2dNTEqupVULzLrk83G_wEtN4beNJsI
但出现错误: 错误] 在当前项目和存储库中可用的插件组 [org.apache.maven.plugins, org.codehaus.mojo] 中找不到前缀“lagom”的插件
所以,我放弃了上面链接中的本教程。
这是 Intellij 终端错误的 gyazo 屏幕截图: https://gyazo.com/7f83cca2baeff6ca383885f814325477
此 gyazo 屏幕截图显示了外部库: https://gyazo.com/6e2898508b64061ebf726fc46881b0ef
如何将此源代码导入 Intellij 并运行/测试 webapp?
谢谢!
【问题讨论】:
-
您正在尝试从 lagom 插件运行 lagom 特定的 maven 目标,但您的应用程序不是 lagom 应用程序。这将失败 - 你的 pom 中没有定义 lagom 插件。
标签: spring maven intellij-idea import spring-tool-suite