Reputation: 242
We have 5 enviornments, DEV, SIT, UAT, PT, PROD. We want the flexibility to deploy different code in different environments. So we created 5 branches on GitHub.
The issue we are facing is in distinguishing the artifacts. We only have one build server and if I give a build on that from SIT branch it will replace the artifacts of DEV from .m2 folder as the version no is same.
Now this impact us in case of dependent components. We have 15 child components and there artifacts are being used by other components at the time of build. Which is getting picked up from .m2 folder.
Is there a way I can distinguish the artifacts of each environment and then use it accordingly. I dont feel major problem in separating as I can tag them at the time of maven build. But then it will not be picked up by other components as the version will include a tag.
Any help will be appreciated.
Upvotes: 0
Views: 148