maven 构建失败 - 无法解析 maven 依赖项

下载 Maven 依赖项时出现以下错误


 Plugin org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE or one of its dependencies could not be resolved:

Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.1.7.RELEASE: 

Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.1.7.RELEASE from/to mdcm 

(https://example.aaa.bbb.com:8443/example/repository/MDCM): unexpected end of stream on Connection

{example.aaa.bbb.com:8443, proxy=HTTP @ aaa.bbb.ccc.com/1.1.1.1:8080 hostAddress=1.1.1.1 cipherSuite=none protocol=http/1.1} 

(recycle count=0): \n not found: size=0 content=... -> [Help 1]

[ERROR] 

我的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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

        <modelVersion>4.0.0</modelVersion>

        <parent>

            <groupId>org.springframework.boot</groupId>

            <artifactId>spring-boot-starter-parent</artifactId>

            <version>2.1.7.RELEASE</version>

            <relativePath/> <!-- lookup parent from repository -->

        </parent>

        <groupId>com.dbs</groupId>

        <artifactId>credit-card</artifactId>

        <version>0.0.1-SNAPSHOT</version>

        <name>credit-card</name>

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

    

        <properties>

            <java.version>1.8</java.version>

            <maven-jar-plugin.version>3.1.2</maven-jar-plugin.version>

        </properties>


LEATH
浏览 230回答 1
1回答

FFIVE

如果您的 Nexus 服务器已连接到互联网,请确保正确配置了 Maven Central 的代理。如果您的 Nexus 服务器未连接到互联网,则必须先将所有工件手动上传到您的 Nexus 存储库,然后才能在项目中使用它们。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java