---
title: "maven 项目 pom.xml 出错"
author: "hehch"
date: "2012-04-05T15:32:59Z"
tags: []
categories: ["开源软件"]
slug: "maven-pom-xml"
draft: false
lastmod: "2012-04-05T15:34:11Z"
id: 1474552
url: "https://hehch.iteye.com/blog/1474552"
---

1,missing ***.jar
那就添加 dependency

2,报：
Plugin execution not covered by lifecycle configuration: 
org.apache.maven.plugins:maven-antrun-plugin:1.3:run (execution: default, phase: compile)
错误信息格式为 groupId:artifactId:version:goal

在</plugins>后添加
<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.apache.maven.plugins
										</groupId>
										<artifactId>
											maven-antrun-plugin
										</artifactId>
										<versionRange>