Maven maven-compiler-plugin版本

项目执行Maven clean后出现WARNING提示。报如信息如下,根据报错信息

'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 104, column 12

猜测是maven-compiler-plugin的版本信息缺失问题

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for June:charles:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 104, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 

百度之后,没有解决

最后在

https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin

查出

 从而确定版本信息。

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.5</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

  

原文地址:https://www.cnblogs.com/itachy/p/7495480.html