Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.7.15.RELEASE in nexus-aliyun
时间: 2023-11-01 08:51:16 浏览: 42
在您的问题中,引用[1]提到了一个错误信息,即找不到Spring Boot Starter Parent的特定版本。引用中提到了手动更改pom.xml文件中Spring Boot Starter Parent的版本号的方法。引用则涉及到Maven引入Hive的jar包时出现依赖报错的问题。
所以,针对您的问题,如果在nexus-aliyun仓库中找不到org.springframework.boot:spring-boot-starter-parent:pom:2.7.15.RELEASE的版本,您可以尝试手动更改您的pom.xml文件中Spring Boot Starter Parent的版本号为可用的版本,比如2.3.4。这样可能有助于解决您遇到的问题。请将以下代码添加到您的pom.xml文件中的<parent>标签中:
```
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.4</version>
```
这样,您的项目将使用2.3.4版本的Spring Boot Starter Parent。希望这可以帮助您解决问题。
相关问题
Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.7.14.RELEASE in nexus-aliyun
回答: 当在maven项目中导入SpringBoot或创建SpringBoot项目时,可能会遇到找不到父级依赖的spring-boot-starter-parent的错误提示。这个问题通常出现在以下场景中。[1]错误提示中可能会显示类似于"Project 'org.springframework.boot:spring-boot-starter-parent:x.x.x' not found"或"Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom"。解决这个问题的方法是检查你的maven配置文件,确保你的maven仓库中有正确的spring-boot-starter-parent版本。如果你使用的是阿里云的maven仓库,可能会遇到类似于"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"的错误提示。这个问题可以通过更新你的maven配置文件,添加正确的证书路径来解决。[2]
解决了第一个问题后,可能会出现第二个问题。错误提示可能包括以下内容:"Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.7.5 in central"、"Cannot resolve symbol 'SpringBootApplication'"和"Cannot resolve symbol 'SpringApplication'"。这些错误提示表明你的项目无法找到相应的依赖或无法解析相应的符号。解决这个问题的方法是检查你的maven配置文件,确保你的maven仓库中有正确的spring-boot-starter-parent版本。同时,还需要检查你的项目中是否正确引入了相应的依赖。[3]
Could not find artifact org.springframework.boot:spring-boot-starter:pom:2.0.0.M4 in nexus-aliyun
引用:Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.1.RELEASE from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.1.RELEASE from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): maven.aliyun.com
引用:解决maven引入hive的jar包时依赖报错Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde in xxx的问题,maven路径org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho...
引用:maven配置文件,setting.xml中:
<mirrors>
<!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. |
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>*</mirrorOf>
</mirror>
-->
</mirrors>
在您的问题中,您遇到了"Could not find artifact org.springframework.boot:spring-boot-starter:pom:2.0.0.M4 in nexus-aliyun"的错误。这个错误意味着在nexus-aliyun中找不到对应的依赖包。根据引用中的信息,可能是因为该依赖包在本地仓库中被缓存了,并且在指定的更新间隔内不会重新尝试解析。另外,您的maven配置文件中的引用显示了一个镜像配置,其中指定了aliyun maven作为镜像源。所以您可能需要检查一下您的maven配置文件,确保nexus-aliyun是正确配置的镜像源。