嗨,我正在尝试使用 intelliJ 构建 Maven 项目。 我想知道 Maven 导入选项的作用是什么?
除了从本地存储库和远程maven存储库导入文件之外,它还从SVN存储库(我正在使用的)导入/更新文件。
那么我是否需要每次都从存储库中 check out 代码,或者导入选项可以做到这一点?
谢谢
最佳答案
IntelliJ 中的 Maven 导入功能的工作原理如下:
If you want to use an existing Maven project, you can import it directly by opening its pom.xml file. When a Maven project is imported, it maps to an IntelliJ IDEA module with the name, which is equal to the Maven project's artifactId. Dependencies between the Maven projects map to the dependencies of IntelliJ IDEA modules from the libraries and other modules. IntelliJ IDEA analyzes the pom.xml file and automatically downloads the necessary dependencies.
它不会从您的 SVN 存储库中 checkout 代码。 Maven 是一个构建工具,可帮助管理您的包可能具有的依赖项,而 SVN 是一个版本控制系统,旨在跟踪您对代码所做的更改。
关于java - intelliJ 中的 maven import 选项是否也从远程存储库导入 jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27071431/