gpt4 book ai didi

java - 核心异常 : Could not calculate build plan

转载 作者:行者123 更新时间:2023-12-01 14:37:36 28 4
gpt4 key购买 nike

<?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>

<parent>
<artifactId>openam-sso-sample</artifactId>
<groupId>me.batizhao</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>agent-java</artifactId>
<packaging>war</packaging>
<name>Java client for OpenAM Agent</name>

<build>
<finalName>agent-java</finalName>
</build>

</project>

但在 <packaging> 处出现错误标签:

CoreException: Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.3.2 (C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2\maven-compiler-plugin-2.3.2.jar): invalid LOC header (bad signature)    pom.xml /agent-java line 15 Maven Project Build Lifecycle Mapping Problem

最佳答案

删除我的主文件夹中的 .m2 - 目录一次就解决了这个问题。运行
之后在项目的根目录中 mvn install 重新创建具有正确依赖项的文件夹。

关于java - 核心异常 : Could not calculate build plan,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16333411/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com