Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Activating 2 profiles in Maven  RSS feed

 
Rakesh Basani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rakesh Basani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much for your peter..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!