当前位置: 首页 > 知识库问答 >
问题:

项目生成错误:父POM不可解析

陶宏浚
2023-03-14
    null
<?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.sample.eig</groupId>
   <artifactId>ols</artifactId>
   <version>0.0.1-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>ols</name>
   <description>Spring Boot Project</description>
   <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.0.0.RELEASE</version>
      <relativePath />
   </parent>
   <repositories>
      <repository>
         <id>0</id>
         <name>TMS</name>
         <url>http://archiva.sample.com:10203/archiva/repository/repo</url>
      </repository>
   </repositories>
   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <java.version>1.8</java.version>
      <azure.version>0.2.3</azure.version>
   </properties>
   <dependencies>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-mail</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-jdbc</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-data-jpa</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-security</artifactId>
      </dependency>
      <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-lang3</artifactId>
         <version>3.0.1</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
      </dependency>
      <dependency>
         <groupId>com.sendgrid</groupId>
         <artifactId>sendgrid-java</artifactId>
         <version>4.1.2</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-test</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>io.springfox</groupId>
         <artifactId>springfox-swagger2</artifactId>
         <version>2.7.0</version>
      </dependency>
      <dependency>
         <groupId>io.springfox</groupId>
         <artifactId>springfox-swagger-ui</artifactId>
         <version>2.7.0</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-cache</artifactId>
      </dependency>
      <dependency>
         <groupId>net.sf.ehcache</groupId>
         <artifactId>ehcache</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.security.oauth</groupId>
         <artifactId>spring-security-oauth2</artifactId>
         <version>2.3.3.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-config</artifactId>
      </dependency>
      <dependency>
         <groupId>com.microsoft.sqlserver</groupId>
         <artifactId>sqljdbc4</artifactId>
         <version>4.0</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-thymeleaf</artifactId>
      </dependency>
      <dependency>
         <groupId>net.sourceforge.nekohtml</groupId>
         <artifactId>nekohtml</artifactId>
         <version>1.9.21</version>
      </dependency>
      <dependency>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.1.1</version>
      </dependency>
      <dependency>
         <groupId>com.microsoft.ews-java-api</groupId>
         <artifactId>ews-java-api</artifactId>
         <version>2.0</version>
      </dependency>
      <dependency>
         <groupId>org.jsoup</groupId>
         <artifactId>jsoup</artifactId>
         <version>1.10.2</version>
      </dependency>
   </dependencies>
   <build>
      <plugins>
         <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
         </plugin>
      </plugins>
   </build>
</project>

项目生成错误:无法解析得父POM无法传输org.springframework.boot:spring-boot-starter-parent:POM:2.0.0.来自http://repo.maven.apache.org/maven2/得版本已缓存在本地存储库中,在经过artie得更新间隔或强制更新之前,将不会重新尝试解析.原始错误:无法传输项目org.springframework.boot:spring-boot-starter-parent:POM:2.0.0。从/到项目(http://repo.maven.apache.org/maven2/):NullPointerException和“parent.relativePath”不指向本地POM POM.xml

共有1个答案

羊舌和安
2023-03-14

检查您的internet连接并确保您能够使用浏览器访问http://repo.maven.apache.org/maven2/。如果是,请检查是否需要配置代理服务器。如果没有,您应该联系您的互联网提供商。

请参阅文档,了解如何为Maven配置代理服务器:

同时删除.m2本地目录,并再次运行mvn clean install

 类似资料:
  • 这是我第一个使用spring Boot的项目。因此我尝试用父级更新pom.xml,如下所示: 然而,我在行中出现了一个错误: 项目生成错误:com.in28minutes的父POM不可解析。springboot:first-springboot-project:0.0.1-snapshot:找不到项目org.springframework.boot:spring-boot-starter-pare

  • 我正在使用maven创建我的第一个spring boot应用程序,我得到了这个错误: bank_application:bank_application:0.0.1的不可解析父POM-快照:无法传输工件org.springframework.boot:spring-boot-starter-parent:POM:1.4.2 这是我的pom.xml

  • 我是Spring靴的初学者。我遵循了入门指南。但没有成功。之后,我从这个链接导入一个项目 http://www.springboottutorial.com/Introduction-to-jpa-with-spring-boot-data-jpa。 我想我错过了一些重要的配置。 谢谢你

  • 我对Maven的世界是新的。我正在尝试创建一个虚拟的Spring Boot项目使用spring工具套件在一个私人公司。每当我尝试创建一个spring-boot项目时,我都会得到以下错误。是否与专用网络有关??如果没有,我的maven安装有什么问题吗?我怎么让它运行? 这里有个错误: 项目生成错误:com.example的父POM不可解析。dummy:dummy-project:0.0.1-snap

  • 我刚刚做了我的第一个Spring Starter项目,我一直得到这个错误。 项目生成错误:COM的父POM不可解析。示例:aop_demo:0.0.1-snapshot:无法传输项目org.springframework.boot:spring-boot-starter-parent:POM:2.1.3.从/到repositor.spring.milestone(https://repo.spri

  • 这是我的pom.xml 此行导致问题。 项目生成错误:com.skm:myapps:0.0.1-快照:无法解析org.springframework.boot:spring-boot-starter-parent:POM:2.0.2。来自https://repo.maven.apache.org/maven2的版本缓存在本地存储库中,在central的更新间隔已过或强制更新之前,不会重新尝试解析。