Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Publish maven artifacts to a private repository on the web

mihai onoprienco September 15, 2023

I got 2 different repositories in bitbucket.

Repository A is creating several .jar artifacts which I then need to use in compilation of repository B ( a second bitbucket pipeline ).

I want to publish these jar file from mvn to a repository ( such as nexus ) and then pull them via mvn inside my second pipeline. How is it possible ?

 

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2023

Hi @mihai onoprienco,

Thank you for reaching out to the community.

To publish those JAR files from MVN to a repository such as Nexus, there's an existing Pipes script for it called "sonatype/nexus-repository-publish" that you can use.

For downloading artifacts from Nexus, I believe you can configure Maven to do this or manually download it through MVN/Curl commands.

I hope it helps.

Regards,
Mark C

mihai onoprienco November 10, 2023

thank you !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events