maven项目报错解决:
1.excution报错:
Multiple annotations found at this line:
- maven-enforcer-plugin (goal "enforce") is ignored by m2e.
- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.3.1:compile (execution:
default, phase: compile)
办法: <plugins> 标签外再套一个 <pluginManagement> 标签,我试验是成功的。
2.报错找不到包,添加依赖:
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.1</version>
<type>bundle</type>
</dependency>
删掉错误后刷新项目,不会再报错。