java - intelliJ 中的 maven import 选项是否也从远程存储库导入 jar

标签 java maven svn intellij-idea

嗨,我正在尝试使用 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/

相关文章:

java - 如何将 FetchType.LAZY 与 ManyToMany 一起使用?

java.lang.NoClassDefFoundError : org/hibernate/cache/EntityRegion configuring EHCache

java - Jenkins Maven 插件 : Classloading Feature

svn - 为什么我可以从命令行连接到 svn 但不能从 tortoise 连接到 svn?

java - 在android中显示区域字符

java - Canvas fillRect() 未填充定义的 Canvas

java - 如何在启动时 Autowiring 配置文件配置类?

java - META-INF/spring.factories 中缺少 spring 自动配置类

svn - 更改 SVN 端口是否需要重新 checkout 项目?

svn - 获取 TeamCity 以构建最新标签