Maven 从Sonatype Repo Manager下载Spring Boot Starter项目
在向Eclipse工作台添加/创建Spring Boot Starter项目时,我遇到了一个错误:Maven 从Sonatype Repo Manager下载Spring Boot Starter项目,maven,spring-boot,proxy,sonatype,Maven,Spring Boot,Proxy,Sonatype,在向Eclipse工作台添加/创建Spring Boot Starter项目时,我遇到了一个错误: Project build error: Non-resolvable parent POM for com.example:demo-2:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.4.RELEASE from https:// repo.mave
Project build error: Non-resolvable parent POM for com.example:demo-2:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.4.RELEASE from https://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.1.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and 'parent.relativePath' points at no local POM
这可能是因为我坐在我们公司代理的后面
代理未收到来自我的eclipse的任何请求。我已经读过了,这似乎是eclipse中的一个bug
我已尝试在Eclipse中设置代理:
窗口>首选项>常规>网络连接
手册:
-具有HTTP和HTTPS的给定凭据
-使用HTTP、HTTPS和SOCKS的给定凭据
本地人:
-没有凭据,因为无法在本地设置凭据
我试图在eclipse.ini中设置代理
这是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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>demo-2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo-2</name>
<description>Demo project for Spring Boot</description>
...
</project>
4.0.0
org.springframework.boot
spring启动程序父级
2.1.4.1发布
com.example
演示-2
0.0.1-快照
演示-2
SpringBoot的演示项目
...
我希望在从internet下载父pom时请求代理
另一种方法是,在创建新的Spring Boot Starter项目时,以某种方式将父pom放入我们的Sonatype Nexus存储库管理中,并从那里下载它。不幸的是,我不知道怎么做