无法传输工件org.springframework.boot

时间:2018-10-02 08:09:32

标签: java spring maven

我在Eclipse中导入项目时遇到了问题:

[错误] fr.su:publipostage:1.0.0的不可解析的父POM:无法从/转移工件org.springframework.boot:spring-boot-starter-parent:pom:1.5.13.RELEASE中央(https://repo.maven.apache.org/maven2):连接超时,并且'parent.relativePath'指向错误的本地POM @第10行,第10列-> [帮助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>fr.su</groupId>
    <artifactId>publipostage</artifactId>
    <version>1.0.0</version>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.13.RELEASE</version>
    </parent>

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

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>fr.opensagres.xdocreport</groupId>
            <artifactId>fr.opensagres.xdocreport.template.velocity</artifactId>
            <version>${xdocreport.version}</version>
        </dependency>
        <dependency>
            <groupId>fr.opensagres.xdocreport</groupId>
            <artifactId>fr.opensagres.xdocreport.document.docx</artifactId>
            <version>${xdocreport.version}</version>
        </dependency>
        <dependency>
            <groupId>fr.opensagres.xdocreport</groupId>
            <artifactId>fr.opensagres.xdocreport.converter.docx.xwpf</artifactId>
            <version>${xdocreport.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.17</version>
        </dependency>

    </dependencies>

    <properties>
        <java.version>1.8</java.version>
        <xdocreport.version>2.0.1</xdocreport.version>
    </properties>

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

.m2文件夹中的我的settings.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<settings NS1:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/settings/1.0.0" xmlns:NS1="http://www.w3.org/2001/XMLSchema-instance">
  <servers>
    <!-- identification pour les telechargements -->
    <server>
        <id>artifactory</id>
        <username></username>
        <password></password>
    </server>

    <!-- identification pour les deploiements -->
    <server>
        <id>applicatifs-releases</id>
        <username></username>
        <password></password>
    </server>
    <server>
        <id>applicatifs-snapshots</id>
        <username></username>
        <password></password>
    </server>
  </servers>
</settings>

任何帮助将不胜感激,我已经看过很多讨论此主题的话题,但到目前为止没有任何帮助。

0 个答案:

没有答案