Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven 3 doesn't play nice with java 7

 
Hengki Widjaja
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried compiling my codes, I got a warning saying that string in switch is not supported in source 1.5, but I've already installed java 7 and change the variables accordingly. Help please? thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change the variables accordingly

What variables? Please post the Compiler plugin configuration in your pom.xml, without that my only guess is that you did something incorrectly.

Also, run "mvn -version" and see what version of Java it tells you about. If it is not 1.7, you need to change your JAVA_HOME.

Also, what OS?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic