How do i setup and build a dependency maven package within a pipeline.
Issue:
I would like to create a pipeline to build(maven) a new java app package but this package depends on another 'common' package held in a different bitbucket repo.
Within my local development environment the build process is straightforward
step 1. within common package folder run : mvn clean install
step 2. within the new java app package run : mvn clean package
This successfully places the common jar file into local maven repo and is available during the build of the new java app.
Question:
How do I perform similar steps in a pipeline? Do I assume that I will have a local maven repo in the docker image during the build pocess?
Thanks for your help