Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.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
Maven项目中不可解析的父POM由http://start.spring.io/_Maven_Spring Boot - Fatal编程技术网

Maven项目中不可解析的父POM由http://start.spring.io/

Maven项目中不可解析的父POM由http://start.spring.io/,maven,spring-boot,Maven,Spring Boot,我已经使用Spring Initializer创建了一个Maven项目,但是当我尝试构建它时,我得到了以下错误: [ERROR] The project com.example:demo:0.0.1-SNAPSHOT (/home/alessandro/Work/workspaces/demo/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Coul

我已经使用Spring Initializer创建了一个Maven项目,但是当我尝试构建它时,我得到了以下错误:

[ERROR]   The project com.example:demo:0.0.1-SNAPSHOT (/home/alessandro/Work/workspaces/demo/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.4.2.RELEASE from/to repo (http://artifactory.dev.*****.it/artifactory/repo): Failed to transfer http://artifactory.dev.*****.it/artifactory/repo/org/springframework/boot/spring-boot-starter-parent/1.4.2.RELEASE/spring-boot-starter-parent-1.4.2.RELEASE.pom. Error code 504, Gateway Time-out and 'parent.relativePath' points at no local POM @ line 14, column 10 -> [Help 2]
自动生成的pom.xml如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>

    <name>demo</name>
    <description>Demo project for Spring Boot</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.4.2.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>

4.0.0
com.example
演示
0.0.1-快照
战争
演示
SpringBoot的演示项目
org.springframework.boot
spring启动程序父级
1.4.2.1发布
UTF-8
UTF-8
1.8
org.springframework.boot
SpringBootStarterWeb
org.springframework.boot
弹簧启动机tomcat
假如
org.springframework.boot
弹簧起动试验
测试
org.springframework.boot
springbootmaven插件
我试图在父标记(如“../pom.xml”)内指定相对路径,但没有成功,有人能帮我吗


谢谢

与start.spring.io无关

您很可能有一个自定义的
~/.m2/settings.xml
,其中所有内容(或Maven Central)都被代理到。******.it/artifactory/repo/

传输失败。****.it/artifactory/repo/org/springframework/boot/spring-boot-starter-parent/1.4.2.RELEASE/spring-boot-starter-parent-1.4.2.RELEASE.pom


如果人工服务器应该在外面取数据,可能是网络故障或其他原因。无论如何,请向该服务器的管理员寻求帮助。

与start.spring.io无关

您很可能有一个自定义的
~/.m2/settings.xml
,其中所有内容(或Maven Central)都被代理到。******.it/artifactory/repo/

传输失败。****.it/artifactory/repo/org/springframework/boot/spring-boot-starter-parent/1.4.2.RELEASE/spring-boot-starter-parent-1.4.2.RELEASE.pom


如果人工服务器应该在外面取数据,可能是网络故障或其他原因。无论如何,请向该服务器的管理员寻求帮助。

“错误代码504,网关超时”。因此,您有internet连接问题。“错误代码504,网关超时”。所以你有网络连接问题。我已经删除了那个文件,它工作正常。谢谢。我已经删除了那个文件,它工作得很好。非常感谢。