1. 程式人生 > >maven 編譯報錯 java: -source 1.5 中不支持switch 中存在字符串

maven 編譯報錯 java: -source 1.5 中不支持switch 中存在字符串

tar compiler com cti compile plugins class mpi 編譯

<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 中存在字符串