在IntelliJ中添加maven repo [英] Adding maven repo in IntelliJ

查看:245
本文介绍了在IntelliJ中添加maven repo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在添加此回购邮件时遇到问题 http://repo1.maven.org/maven2/在设置> Maven>存储库下。它还说Nexus服务或Artifactory URL。如何检查URL是否属于以下类型之一?

I'm having trouble adding this repo http://repo1.maven.org/maven2/ under Settings > Maven > Repositories. It also says Nexus Service or Artifactory URL. How can I check if the URL is one of these types?

http://repo1.maven.org/maven2/ 是我在NetBeans for Maven中使用的URL,它在那里工作。

http://repo1.maven.org/maven2/ is the URL I use in NetBeans for Maven, and it works there.

推荐答案

此存储库默认已使用且是硬编码的,您无需手动添加。如果您想使用任何其他存储库,最简单的方法是直接在<$ c中定义它$ c> pom.xml 文件或在 settings.xml中。无论哪种方式,IDEA都会自动加载这些设置。

This repository is already used by default and is hardcoded, you don't need to add it manually. If you want to use any other repository, the easiest way would be to define it directly in the pom.xml file or in your settings.xml. In either way IDEA will load these settings automatically.

这篇关于在IntelliJ中添加maven repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆