warning maven-compiler-plugin is missing

原pom文件


  <build>
	<plugins>
	  <plugin>
		<artifactId>maven-compiler-plugin</artifactId>
		<configuration>
			<source>1.6</source>
			<target>1.6</target>
		</configuration>
	   </plugin>
	</plugins>
  </build>


maven3以上需要知道maven-compiler-plugin的版本号 。


修改后pom文件


 <build>
	<plugins>
	  <plugin>
		<artifactId>maven-compiler-plugin</artifactId>
		<version>2.3.2</version>
		<configuration>
			<source>1.6</source>
			<target>1.6</target>
		</configuration>
	   </plugin>
	</plugins>
  </build>


D:\Java\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\yangj\Desktop\huiyiguanlixitong -Djansi.passthrough=true "-Dmaven.home=D:\java\idea\IntelliJ IDEA 2024.3.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\java\idea\IntelliJ IDEA 2024.3.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=D:\java\idea\IntelliJ IDEA 2024.3.1.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\java\idea\IntelliJ IDEA 2024.3.1.1\lib\idea_rt.jar=64647:D:\java\idea\IntelliJ IDEA 2024.3.1.1\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "D:\java\idea\IntelliJ IDEA 2024.3.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.8.0.jar;D:\java\idea\IntelliJ IDEA 2024.3.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2024.3.1.1 -s D:\apache-maven-3.6.3\conf\settings.xml [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.jlwl:huiyiguanlixitong:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 286, column 21 [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. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.073 s [INFO] Finished at: 2025-05-12T10:28:31+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
最新发布
05-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值