问题描述
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"
问题出现的环境背景及自己尝试过哪些方法
它说必须是pom 所以我就把packaging里的jar改成了pom,但是没有用
而且我很在意的是为什么是unknown version
代码没贴完 但我感觉问题应该出在这前面
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
<?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>
貌似是近期这里第二个被某个错误demo坑的人了
这个依赖并不能做parent,你需要