• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

zipping the properties files and pushing in Nexus repository through maven  RSS feed

Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to zip the property files( property file are not part of war they are maintained externally in folder) .These property file contains database information for all env. I  want to zip then and upload in nexus repository.please let me know how we can do it in maven
Posts: 20124
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would create a Maven JAR project and make the properties files be the sole source resources in it (src/main/resources). That would create a "ZIP" file, since JAR is simply ZIP plus metadata in the META-INF directory.

You can then use Maven to build a product and push that product to Nexus.

How you get it from Nexus to the target server is something I'm less clear about. My own strategy for stuff like that is usually to build an OS install package (RPM, deb, msi or whatever) and hand it off to whoever's deploying the app. Which might be a person or a software provisioning agent such as Puppet or Ansible. You could just manually install the ZIP also, but I like to be kind to my operations team,

Alternatively you could let Jenkins or a similar build control/continuous integration system do the job. Depends on how your shop is organized.
Die Fledermaus does not fear such a tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!