0

使用 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>
4

0 回答 0