This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven 3 doesn't play nice with java 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven 3 doesn Watch "maven 3 doesn New topic
Author

maven 3 doesn't play nice with java 7

Hengki Widjaja
Ranch Hand

Joined: Oct 31, 2011
Posts: 44
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

Joined: May 14, 2008
Posts: 5812
    
    7

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?


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: maven 3 doesn't play nice with java 7
 
Similar Threads
JAVA 7 launching on 7/7/2011
Using Modulus
7/7/11 - java released
what has changed in javaSE since 2005?
I like Ubuntu 8.04