Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin
来源:互联网 发布:mvc索引超出数组界限 编辑:程序博客网 时间:2024/05/23 17:53
解决方案1:
加入如下代码:
<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.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <versionRange>[1.0,)</versionRange> <goals> <goal>test-compile</goal> <goal>compile</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement>
解决方案2:
将plugins嵌套进pluginManagement
<build> <pluginManagement> <plugins> <plugin> ... </plugin> <plugin> ... </plugin> .... </plugins> </pluginManagement></build>
pluginManagement 的官方介绍:
pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.
<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"> ... <build> ... <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>pre-process-classes</id> <phase>compile</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>pre-process</classifier> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> ... </build></project>
If we added these specifications to the plugins element, they would apply only to a single POM. However, if we apply them under the pluginManagement element, then this POM and all inheriting POMs that add the maven-jar-plugin to the build will get the pre-process-classes execution as well. So rather than the above mess included in every child pom.xml, only the following is required:
<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"> ... <build> ... <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> </plugin> </plugins> ... </build></project>
- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin
- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.3.
- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:xml-maven-plugin:1.0:tran
- Maven经典错误之二- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-mave
- Jacoco Maven Plugin - Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-plugin-plugi
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration...
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- W3C宣布HTML5规范正式完工,耗时三年
- 动态日历
- 如何清理数据库log文件+sql server 2008
- linux下 mysql设置双机热备份
- jquery -全选/反选
- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin
- 开源 免费 java CMS - FreeCMS安装手册
- C++中的虚函数(virtual function)
- error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file.....
- UILable 表情符号大全
- 围观黑客如何干掉黑客?
- JAVA调用存储过程发送邮件
- 基于Tomcat6.0下的JNDI DataSource指引
- 关于一个JS功能实现的思维方式