• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Creating jar file for more than one environment

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
As of now, I have Maven set up in which I create one tar file for each environment (dev,QA or prod). I have a requirement where by I need to create a tar for all the three environments in one go. I am trying to check the details online but have not had much sucess till now. Can someone please provide me some pointers?

Regards,
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume you mean jar file and not tar?

My first question would be what is the difference between your 3 builds?
 
nitinram agarwal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ITs a jar file. Sorry for the typo.
The difference is that there are environment specific settings in some of the source files as well as proerty file contents.

For ex

ORACLE_HOME is different in different environment and we have some shell scripts which requires this variable.

Please let me know if you need any other details.
 
James Boswell
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nitinram

It sounds like what you need are profiles: http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic