It's not a secret anymore!
The moose likes Ant, Maven and Other Build Tools and the fly likes Edit Maven pom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Edit Maven pom" Watch "Edit Maven pom" New topic

Edit Maven pom

Chris Bohannon

Joined: Jul 28, 2009
Posts: 8


I have created a maven project on Ubuntu 12.04 and imported it using IntelliJ. I am using Java 1.7 and Maven 3.0.4. Java 1.7 supports using a switch case with a string. Now when I first tried to compile my maven project through the IDE I received an error stating that strings are not supported in a switch...use an if/else instead. i have edited my pom with this:


That solves the compile error and I can move forward. My question is this, how do I edit the version from 2.3.2 to 3.0.4 which is what I have installed. When I change the version I get an error stating 3.0.4 plugin can't be found. Any help would be great.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32818

The latest version of the compiler plugin is currently 2.5.1. Your Maven version is 3.0.4, but that doesn't make all your plugins version 3.0.4. Since you referenced a version of the maven compiler plugin that doesn't exist, that error message is correct.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Chris Bohannon

Joined: Jul 28, 2009
Posts: 8

Thank you for the resolution and link!
I agree. Here's the link:
subject: Edit Maven pom
It's not a secret anymore!