• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A few questions on CI, configuration and integration

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I currently have a system that has a single Maven build. It contains many modules, with only one shared library between all of them. I have it setup where I can do a build of all of the modules at once.

My project is setup as such:

  • Web Application and service end points
  • Shared library
  • Client Project1
  • Client Project2


  • Client Project 2 contains tests that require the web application to be deployed and working. If the web application's test endpoints fail, then I'm ok with the Client-Project2 not to be built.

    [Please forgive me with all of this detail.. I'm a little bit lost on whats the best practice here]

    So the questions I have:
  • How would I build the Java web application and keep a separate configuration? (I can't just store it in the DB, because the DB connection string can change based on where its deployed... and it doesn't fix the configuration deal) I'm also reluctant to hard code the database reference within the build. (Via resource filtering)
  • How would I force a deploy within Maven prior to moving to the next project?


  •  
    author
    Posts: 5856
    7
    Android Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Personally, I would have 4 Maven projects, one for each artifact. I would use Jenkins to build them, and if i wanted to force them to always rebuild, I would configure that in Jenkins.

    As to the configuration setting, we use profiles in settings.xml and resource filtering to apply the property values in settings.xml to the filtered properties files. Sometimes that does mean editing the settings.xml file when working with a new host, but that's usually not that big of an issue.
     
    Steven Hicks
    Greenhorn
    Posts: 2
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Peter Johnson wrote:Personally, I would have 4 Maven projects, one for each artifact. I would use Jenkins to build them, and if i wanted to force them to always rebuild, I would configure that in Jenkins.

    As to the configuration setting, we use profiles in settings.xml and resource filtering to apply the property values in settings.xml to the filtered properties files. Sometimes that does mean editing the settings.xml file when working with a new host, but that's usually not that big of an issue.



    So are you suggeting that the builds will have compiled in settings?
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic