SpringBoot MAVEN编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:(代码片
Posted huanghongbo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringBoot MAVEN编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:(代码片相关的知识,希望对你有一定的参考价值。
参考了好几篇文章没搞定,直到查询错误关键字
An unknown compilation problem occurred
分别参考了以下博客:
https://blog.csdn.net/fanrenxiang/article/details/80864908
https://blog.csdn.net/weixin_42167717/article/details/80377123
最后搞定的是这篇
https://my.oschina.net/u/170632/blog/857078
An unknown compilation problem occurred
maven 编译项目遇到
里面我引用了jdk的jar,遇到上面那个报错
<plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.0</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <compilerArguments> <verbose /> <!-- 要注意 win是冒号,linux/Mac OS是分号,--> <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath> </compilerArguments> </configuration> </plugin>
注意代码中的文字,就是解决办法
以上是关于SpringBoot MAVEN编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:(代码片的主要内容,如果未能解决你的问题,请参考以下文章
SpringBoot项目 - Maven Build Lombok 报错
关于centos git clone 报错 fatal: HTTP request faile
Maven异常_02_compile faile_Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:c
AFNetworking报错:(415 Domain=com.alamofire.error.serialization.response Code=-1011 "Request faile