码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-07-04 14:42:31      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:tar   plugins   pid   switch   default   apach   man   build   pil   

 

在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 编译报错 java: -source 1.5 中不支持switch 中存在字符串

标签:tar   plugins   pid   switch   default   apach   man   build   pil   

原文地址:http://www.cnblogs.com/whyhappy/p/7116042.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!