gpt4 book ai didi

java - Intellij IDEA Ultimate 2020.3中无法创建Spring多模块项目

转载 作者:行者123 更新时间:2023-12-04 17:21:01 25 4
gpt4 key购买 nike

我是 maven , spring , Intellij IDEA 的新手。我正在尝试创建一个 spring 多模块项目,当我按照文档进行操作时,有一个名为“Packaging”或“Type”的选项可以将项目打包更改为“pom”。
这是其中一份文件的图片。
Took from net
但是在我的 IDEA(最终版本 2020.3)中,没有改变它的选项。这是我的想法。
由于我是这个 IDEA 的新手,有什么办法可以得到这个选项吗?
或者有什么最好的方法来创建 spring 多模块项目?
请帮忙。我已经为此寻找了超过 2 天的解决方案。
enter image description here
(我使用的是 ubuntu 18.04)

最佳答案

Maven POM 您认为生成 Maven 聚合器(pom 包装)的选项实际上并没有这样做。它只会创建一个 pom.xml没有模板项目的文件(目录和源代码)。 Maven项目选项创建 pom.xml文件和源代码。
enter image description here
至于你最初关于如何创建多模块Maven项目的问题——创建一个空的Maven项目类型,将其打包设置为pom然后使用 File | 添加 Spring Initializr 项目。新 |模块 Action 。

关于java - Intellij IDEA Ultimate 2020.3中无法创建Spring多模块项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66229534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com