Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can maven projects depend on one another within Bitbucket Pipelines?

Oliver Pavey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2019

When I build locally I will build my libraries using:

mvn clean install

That installs my libraries into the local maven repository (~/.m2)

Then I build the applications using something like:

mvn clean verify docker:build

These applications rely on the libraries (and some libraries rely on other libraries).

When I do the same using bitbucket pipelines (and execute the pipelines builds in the correct order) I get an error from maven indicating that the library (compiled under the same user account but stored in a separate bitbucket repository) is not found.  Clearly there is no shared maven repository containing the project which the mvn install command run from bitbucket-pipelines.yml previously successfully installed somewhere.

Is there any way I can git bitbucket pipelines to use one local repository across my projects?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events