java - 错误 pom.xml 配置与 Spring Boot + Spring MVC + Primefaces + JoinFaces
问题描述
使用 STS IDE 尝试 maven install 命令时收到错误:
ERROR] error reading C:\Users\Paulo\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.29\tomcat-embed-core-8.5.29.jar; invalid LOC header (bad signature)
[ERROR] error reading C:\Users\Paulo\.m2\repository\org\glassfish\javax.faces\2.3.4\javax.faces-2.3.4.jar; invalid LOC header (bad signature)
[ERROR] error reading C:\Users\Paulo\.m2\repository\org\joinfaces\joinfaces-autoconfigure\3.2.0\joinfaces-autoconfigure-3.2.0.jar; invalid LOC header (bad signature)
[ERROR] error reading C:\Users\Paulo\.m2\repository\org\primefaces\primefaces\6.2\primefaces-6.2.jar; invalid LOC header (bad signature)
[ERROR] error reading C:\Users\Paulo\.m2\repository\org\primefaces\extensions\primefaces-extensions\6.2.4\primefaces-extensions-6.2.4.jar; invalid LOC header (bad signature)
[INFO]
我从https://spring.io/guides/gs/serving-web-content/下载了带有 spring boot 和 spring mvc 的基本项目 运行良好。在此之后,我添加了 JoinFaces 的依赖项,但我现在收到错误。
我的 pom xml:
//标题省略
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework</groupId>
<artifactId>gs-serving-web-content</artifactId>
<version>0.1.0</version>
<name>jsf-primefaces-spring-boot</name>
<description>JSF - PrimeFaces Example using Spring Boot and Maven</description>
<url>https://www.codenotfound.com/jsf-primefaces-example-spring-boot-maven.html</url>
<parent>
<groupId>org.joinfaces</groupId>
<artifactId>joinfaces-parent</artifactId>
<version>3.2.0</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- joinfaces -->
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>primefaces-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
解决方案
推荐阅读
- language-agnostic - Codility CyclicRotation 就地实施
- excel - Excel:检查值是否出现在几张纸之一上
- python - 在python中随机连接两个数组直到满足限制长度
- php - php -m 的可靠性如何。我可以用它来检查所有已安装的 php 扩展吗?
- nosql - 使用单表的 NoSQL 数据库设计
- excel - 通过 VBA 自动筛选时如何跳过字段?
- ios - Xcode 构建上传错误:对 TCP 端口 443 的出站访问,无法找到包的 MZContentProviderUpload。(1041)
- node.js - 节点 js 和猫鼬模式 date.now 代码无法正常工作
- mysql - mySQL 5.5 - 在与 UNION 链接的两个表之后将值透视到列
- jenkins - 如何访问 Jenkins ${workspace}/ 中的子目录?