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>

posted @ 2018-03-20 16:36  Bob_C  阅读(2023)  评论(0编辑  收藏  举报