Java 如何将存储库添加到";索引Maven存储库“;在IntelliJ IDEA 13中?

Java 如何将存储库添加到";索引Maven存储库“;在IntelliJ IDEA 13中?,java,maven,intellij-idea,intellij-13,Java,Maven,Intellij Idea,Intellij 13,如何将存储库/存储库添加到IntelliJ IDEA 13中的“索引Maven存储库”中? 通过IntelliJ IDEA创建一个简单的Maven项目: 选择“启用自动导入” 然后,将它们添加到pom.xml: <repositories> <repository> <id>codehausSnapshots</id> <name>Codehaus Snapshots</name&g

如何将存储库/存储库添加到IntelliJ IDEA 13中的“索引Maven存储库”中?
通过IntelliJ IDEA创建一个简单的Maven项目:







选择“启用自动导入”



然后,将它们添加到
pom.xml

<repositories>
    <repository>
        <id>codehausSnapshots</id>
        <name>Codehaus Snapshots</name>
        <releases>
            <enabled>false</enabled>
            <updatePolicy>always</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
        <url>http://snapshots.maven.codehaus.org/maven2</url>
        <layout>default</layout>
    </repository>
</repositories>

代码库快照
科德豪斯快照
假的
总是
警告
真的
从未
失败
http://snapshots.maven.codehaus.org/maven2
违约


返回设置(Ctrl+Alt+S),“索引Maven存储库”部分已更新:


将此报告添加到maven中的settings.xml:

<project> 
  <repositories> 
        <repository>
            <id>my-internal-site</id> 
            <url>http://myserver/repo</url> 
         </repository> 
     </repositories> 
 </project>

我的内部网站
http://myserver/repo 

可能重复:它没有重复,我已经读过了。您是否看到屏幕截图上的红色文本:“这里什么都没有!”?标记不应在settings.xml中使用,而应在pom的项目中使用它。在settings.xml中,要设置回购,应将其放入标记中