gpt4 book ai didi

maven - 如何在 IntelliJ 中将子文件夹标记/导入为 Maven 项目?

转载 作者:行者123 更新时间:2023-12-02 00:08:18 26 4
gpt4 key购买 nike

我从 git 导入了一个项目,其中最顶层的文件夹不包含任何 pom 文件。它的树下有 src 文件夹和一些 java 文件。

同时,它有几个子文件夹,每个子文件夹中都有 pom 文件。

如何强制IntelliJ认为这些是项目?

最佳答案

How to force IntelliJ think these are projects?

您可以将它们作为模块添加到您的 IDEA 项目中。打开Maven工具窗口并使用添加按钮enter image description here添加它们。

如果您希望每个项目都是一个单独的 IDEA 项目,则只需对每个项目使用File > Project from Existing Sources 并选择 pom 文件即可。

enter image description here

关于maven - 如何在 IntelliJ 中将子文件夹标记/导入为 Maven 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31099619/

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