首页 > 其他分享 >Plugin execution not covered by lifecycle configuration

Plugin execution not covered by lifecycle configuration

时间:2023-05-16 13:03:20浏览次数:47  
标签:plugin color maven org covered execution lifecycle


异常信息:
[color=red]Plugin execution not covered by lifecycle configuration: com.google.code.maven-svn-revision-number-plugin:svn-revision-number-maven-plugin:1.13:revision (execution: default, phase: validate)

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.3:run (execution: process-classes, phase: process-classes)

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:native2ascii-maven-plugin:1.0-beta-1:native2ascii (execution: native2ascii-utf8, phase: process-resources)[/color]

[color=red][b]方法一: [/b][/color]点某一个错误右键, 选择Quick Fix, 选择忽略这个验证, 记得不要选择网上验证, 而是直接忽略, 同时选择剩下的pom.xml

[color=red][b]方法二: [/b][/color]在build节点增加一下代码:
解决问题看官方方法:
[url]http://eclipse.org/m2e/documentation/m2e-execution-not-covered.html[/url]

<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
										<artifactId>svn-revision-number-maven-plugin</artifactId>
										<versionRange>[1.13,)</versionRange>
										<goals>
											<goal>revisions</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute>
											<runOnIncremental>false</runOnIncremental>
										</execute>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
				<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>native2ascii-maven-plugin</artifactId>
										<versionRange>[1.0-beta-1,)</versionRange>
										<goals>
											<goal>native2ascii</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute>
											<runOnIncremental>false</runOnIncremental>
										</execute>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
				<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>[1.3,)</versionRange>
										<goals>
											<goal>run</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute>
											<runOnIncremental>false</runOnIncremental>
										</execute>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>

标签:plugin,color,maven,org,covered,execution,lifecycle
From: https://blog.51cto.com/u_3871599/6283498

相关文章