This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Profile Usage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Profile Usage" Watch "Maven Profile Usage" New topic

Maven Profile Usage

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9755


I have a doubt on using Maven profiles for my application. Can I use profiles to compile using different versions of JDK? Say for example, I have a profile which compiles against JDK 1.4 and the other one with JDK 1.5. I guess this should be possible? Isn't it?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10394

Yes it's possible. This doc has the details

[My Blog] [JavaRanch Journal]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9755

Thanks for the link!
I agree. Here's the link:
subject: Maven Profile Usage