java: 无效的标记: -verbose -bootclasspath问题
或者
java: 无效的标记: -verbose -某某classpath问题
起因:从git上扒拉个项目下来,都准备好了环境,数据库,maven库等,发现出现java: 无效的标记: -verbose -bootclasspath 这个问题,以为是编译器的问题,随便写个类都可以便宜,随后排除编译器问题,然后又采用https://blog.csdn.net/qq_37372007/article/details/84648717中提到的办法,也不能解决,后来找老大,一番排查下来找到了问题所在
处理办法:
maven的pom.xml中出现plugins中的plugin中编译器指定的版本低,改为以下版本即可
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
原来的是1.3的,所以不能编译一些类,