旧版本m2e插件报以下错:
引用
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-
compiler-plugin:3.0:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-
compiler-plugin:3.0:testCompile (execution: default-testCompile, phase: test-compile)
解决办法,在pom中加入如下配置:
<build>
<pluginManagement>
<plugins>
<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-resources-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>resources</goal>
<goal>testResources</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
该解决办法有副作用,其中一个见:
http://vivus.iteye.com/blog/1741102
这是m2e插件的bug,建议还是升级m2e插件才是根本解决办法。
分享到:
相关推荐
Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to ...
maven-plugin-annotations-3.0.jar
maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装...
赠送Maven依赖信息文件:jackson-annotations-2.2.3.pom; 包含翻译后的API文档:jackson-annotations-2.2.3-javadoc-API文档-中文(简体)版.zip; Maven坐标:com.fasterxml.jackson.core:jackson-annotations:2.2.3...
赠送Maven依赖信息文件:swagger-annotations-1.5.20.pom; 包含翻译后的API文档:swagger-annotations-1.5.20-javadoc-API文档-中文(简体)版.zip; Maven坐标:io.swagger:swagger-annotations:1.5.20; 标签:...
赠送Maven依赖信息文件:swagger-annotations-1.6.2.pom; 包含翻译后的API文档:swagger-annotations-1.6.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:io.swagger:swagger-annotations:1.6.2; 标签:swagger...
maven-plugin-annotations-1.0.jar
赠送Maven依赖信息文件:flink-annotations-1.10.0.pom; 包含翻译后的API文档:flink-annotations-1.10.0-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.apache.flink:flink-annotations:1.10.0; 标签:...
赠送Maven依赖信息文件:jackson-module-jaxb-annotations-2.2.3.pom; 包含翻译后的API文档:jackson-module-jaxb-annotations-2.2.3-javadoc-API文档-中文(简体)版.zip; Maven坐标:...
赠送Maven依赖信息文件:jackson-module-jaxb-annotations-2.7.8.pom; 包含翻译后的API文档:jackson-module-jaxb-annotations-2.7.8-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:...
maven-plugin-annotations-1.0-sources.jar
1.7 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's). Memory: No minimum requirement. Disk: Approximately 10MB is required for the Maven ...
maven-module-multiple Maven 多模块存根
Maven 是一个项目管理和构建自动化工具
赠送Maven依赖信息文件:swagger-annotations-1.5.13.pom; 包含翻译后的API文档:swagger-annotations-1.5.13-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:io.swagger:swagger-annotations:1.5.13; ...
Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令Maven 命令
maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0maven3.0
Maven3.9.4版本压缩包,仅供学习参考,更新版本请前往Maven官方下载;Maven3.9.4版本压缩包,仅供学习参考,更新版本请前往Maven官方下载;Maven3.9.4版本压缩包,仅供学习参考,更新版本请前往Maven官方下载;Maven...
1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void ()' not found at org.jetbrains.idea.maven.server.embedder....
NULL 博文链接:https://yuky1327.iteye.com/blog/1264756