'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' a
Posted 张氏码农之旅
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' a相关的知识,希望对你有一定的参考价值。
错误提示: ‘packaging‘ with value ‘jar‘ is invalid. Aggregator projects require ‘pom‘ as packaging. @ line 3, column 110
问题背景:
spring boot 聚合工程,clean 报如上错误
解决办法:
<?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 https://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.3.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.ibaiqi</groupId> <artifactId>gov_parent</artifactId> <version>0.0.1-SNAPSHOT</version> <name>gov_parent</name> <description>Demo project for Spring Boot</description> <!-- spring boot 聚合父工程中,打包类型要求设置为 pom--> <packaging>pom</packaging> <modules> <module>gov_domain</module> </modules> <properties> <java.version>1.8</java.version> </properties> <dependencies> <!--导入spring boot web依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--导入jquery 依赖jar--> <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.3.1</version> </dependency> <!-- thymeleaf 依赖jar--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!-- 主配置与实体类关联的处理器--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
以上是关于'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' a的主要内容,如果未能解决你的问题,请参考以下文章
安装pip3遇到:E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solu
Django ValueError: invalid literal for int() with base 10: 'xxx'解决办法
error fixE: Package 'oracle-java8-installer' has no installation candidate
error fixE: Package 'oracle-java8-installer' has no installation candidate
ValueError: The field authtoken.Token.user was declared with a lazy reference to 'api.user',