<?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
答案 0 :(得分:1)
删除我的主文件夹中的.m2 - 目录一次修复了这个问题。运行
在此之后,在项目的根目录中mvn install
重新创建具有正确依赖关系的文件夹。