maven 编译报错 java: -source 1.5 中不支持switch 中存在字符串

Posted Bob_C

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven 编译报错 java: -source 1.5 中不支持switch 中存在字符串相关的知识,希望对你有一定的参考价值。

<build>

<defaultGoal>compile</defaultGoal>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>


</build>
















以上是关于maven 编译报错 java: -source 1.5 中不支持switch 中存在字符串的主要内容,如果未能解决你的问题,请参考以下文章