Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring Maven配置问题-settings.xml_Spring_Maven 2 - Fatal编程技术网

Spring Maven配置问题-settings.xml

Spring Maven配置问题-settings.xml,spring,maven-2,Spring,Maven 2,成功地从我的存储库中取出了几个罐子。这个特殊的jar(失败,请参见下文)需要来自Maven central Repo,但它可以从我的Repo下载它,而我的Repo不存在这个jar。我觉得我在settings.xml中的配置是错误的。我的主要疑问是镜像配置 在我的域中找不到工件org.springframework.boot:springbootstarter父对象:pom:1.4.0.RELEASE) myrepo 我的名字 **** 马文2 马文2 https://repo.maven.ap

成功地从我的存储库中取出了几个罐子。这个特殊的jar(失败,请参见下文)需要来自Maven central Repo,但它可以从我的Repo下载它,而我的Repo不存在这个jar。我觉得我在settings.xml中的配置是错误的。我的主要疑问是镜像配置

在我的域中找不到工件org.springframework.boot:springbootstarter父对象:pom:1.4.0.RELEASE)


myrepo
我的名字
****
马文2
马文2
https://repo.maven.apache.org/maven2
专家
myrepo
回购租置计划
http://w3.maven.mydomain.com/nexus/content/repositories/domain
中心的

尝试在pom.xml中添加以下内容

<repositories>
        <repository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

春季快照
春季快照
https://repo.spring.io/snapshot
真的
春季里程碑
春季里程碑
https://repo.spring.io/milestone
假的
春季快照
春季快照
https://repo.spring.io/snapshot
真的
春季里程碑
春季里程碑
https://repo.spring.io/milestone
假的

尝试在pom.xml中添加以下内容

<repositories>
        <repository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

春季快照
春季快照
https://repo.spring.io/snapshot
真的
春季里程碑
春季里程碑
https://repo.spring.io/milestone
假的
春季快照
春季快照
https://repo.spring.io/snapshot
真的
春季里程碑
春季里程碑
https://repo.spring.io/milestone
假的

我可以通过删除镜像并将其添加为存储库来解决此问题。无论如何,谢谢你的建议。我可以通过删除镜像并将其添加为存储库来解决这个问题。无论如何,谢谢你的建议。