This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven Profile Usage" Watch "Maven Profile Usage" New topic
Author

Maven Profile Usage

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8145
    
  52

Yes it's possible. This doc has the details http://maven.apache.org/guides/introduction/introduction-to-profiles.html


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

Joined: Sep 26, 2006
Posts: 8795

Thanks for the link!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Maven Profile Usage
 
Similar Threads
"Remove Profile" - Any wizard available?
Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1
Conditional dependency
Maven: activating a default profile, with a twist
how to deploy different hibernate config file for qa/prod via maven