Hi, Devs,
Now that I’m pulling and pushing more into the OHDSI repo related to WebAPI, I’m finding myself doing thee following between pushes:
- Pull latest repo.
- Make updates in pom.xml (such as add new dependencies)
- Test.
- Revert changes in pom.xml related to my specific environment
- commit changes.
- Push to repo
- Revert revert my pom.xml so that my local env runs.
Things in my local env are the db connection settings, dialect, etc.
Is there something related to Maven profiles that we can house in separate .xml files ‘development’ settings that are not checked into Git? I don’t mean to say that this file is ignored, but you can set the ‘assume unchanged’ flag in the index so that it will never check it in. This way, we can put a developer.xml settings file in the codebase, and have the pom.xml file refer to it by default, but the actual content in the develroper.xml will be on a case-by-case basis.
Does this make sense? I’d just like to be able to do a simple fetch/merge from the ohdsi repo without the manuver of injecting my local settings every time or resorting to a stash/pop stash every time. I fear accidentally checking in local stettings that could later be confusing for someone else.
Can anyone give me some help as to how we could set this up in WebAPI repo?
-Chris