安利叨叨 2020-04-18 21:33 采纳率: 0%
浏览 1880

idea配置pom文件时,依赖没有自动提示,发现我的情况比较特殊,有人知道怎么回事吗?

pom文件导入依赖时没有提示,在网上搜说更新索引,试了没有用,**发现我的idea第一个选项是远程仓库,第二个才是本地仓库,**别人的都是第一个是本地仓库,第二个是远程仓库,有人知道是怎么回事吗?重装了也是这样。
图片说明

这是我的setting文件

<mirrors>
     <mirror>
            <id>alimaven</id>
            <mirrorOf>central</mirrorOf>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/repositories/central</url>
        </mirror>

        <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
            <mirrorOf>central</mirrorOf>
        </mirror>

        <mirror>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <url>http://repo1.maven.org/maven2</url>
            <mirrorOf>central</mirrorOf>
        </mirror>

        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo2.maven.org/maven2</url>
        </mirror>

        <mirror>
            <id>ibiblio</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
        </mirror>

        <mirror>
            <id>jboss-public-repository-group</id>
            <mirrorOf>central</mirrorOf>
            <name>JBoss Public Repository Group</name>
            <url>http://repository.jboss.org/nexus/content/groups/public</url>
        </mirror>

        <mirror>
            <id>google-maven-central</id>
            <name>Google Maven Central</name>
            <url>https://maven-central.storage.googleapis.com
            </url>
            <mirrorOf>central</mirrorOf>
        </mirror>

        <!-- 中央仓库在中国的镜像 -->
        <mirror>
            <id>maven.net.cn</id>
            <name>oneof the central mirrors in china</name>
            <url>http://maven.net.cn/content/groups/public</url>
            <mirrorOf>central</mirrorOf>
        </mirror>  
        </mirror>  
  </mirrors>

   <profile>
                <id>jdk-1.8</id>
                <activation>
                      <activeByDefault>true</activeByDefault>
                      <jdk>1.8</jdk>
                </activation>
                <properties>
                      <maven.compiler.source>1.8</maven.compiler.source>
                      <maven.compiler.target>1.8</maven.compiler.target>
                      <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
                </properties>
         </profile>
         <profile>
                <id>repository_set</id>
                <repositories>
                        <repository>
                            <snapshots>
                                <enabled>false</enabled>
                            </snapshots>
                            <id>public</id>
                            <name>Public Repository</name>
                            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                        </repository>
                </repositories>
                <pluginRepositories>
                        <pluginRepository>
                              <releases>
                                    <updatePolicy>never</updatePolicy>
                              </releases>
                              <snapshots>
                                    <enabled>false</enabled>
                              </snapshots>
                              <id>public</id>
                              <name>Public Repository</name>
                              <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                        </pluginRepository>
                 </pluginRepositories>
            </profile>
  <profiles>
  • 写回答

2条回答 默认 最新

  • weixin_44589432 2020-04-23 20:42
    关注

    我的是IDE是2019只有远程仓库连本地仓库都找不到

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料