This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Activating 2 profiles in Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Activating 2 profiles in Maven" Watch "Activating 2 profiles in Maven" New topic
Author

Activating 2 profiles in Maven

Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
hi guys..

I am using profiles in pom.xml to connect to different databases by supplying values via properites files. So, If I activate 2 profiles at a time using <activateByDefault>true</activateByDefault>
then my application connects to which database. Please clarify my doubt.


Thanks in advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Property values are immutable, therefore the first property value that gets set wins. This will be the value set in the first profile in the pom.xml.


JBoss In Action
Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
thank you very much for your peter..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Activating 2 profiles in Maven