您的位置:首页 > 编程语言 > Java开发

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

2016-09-20 16:01 671 查看
在pom里面加上

<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
相关文章推荐