Springboot reported an error

problem description

springboot
Project build error: Invalid packaging for parent POM org.springframework.boot:spring-boot-starter-data-redis:[unknown-version], must be "pom" but is "jar"

the environmental background of the problems and what methods you have tried

  pom  packagingjarpom
  unknown version
   
  

related codes

/ / Please paste the code text below (do not replace the code with pictures)

   <?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.neo</groupId>
<artifactId>spring-boot-web</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>

<name>spring-boot-web</name>
<description>Demo project for Spring Boot</description>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
    <version>1.5.6.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

what result do you expect? What is the error message actually seen?

Aug.04,2021

Invalid packaging for parent POM org.springframework.boot:spring-boot-starter-data-redis:[unknown-version]

this should be caused by the failure of dependency import


seems to be the second person here recently to be fooled by some wrong demo

.
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.5.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
Menu