Forums

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

How to have Rovo agent use dependent library which is not in a public repository?

Galina Rogozinsky
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!
August 20, 2025

Hi

I need my code to use another library which is a part of my company's repository and available in Bitbucket. I asked Rovo agent to add the needed dependency in pom.xml which it did and updated code to use this dependent class, but the generated code had compilation errors which I assume due to a fact that my library is not a part of a public repository. Is there a way to solve this?

Thank you.

2 comments

Comment

Log in or Sign up to comment
Jaime Escribano (knowmad mood)
Atlassian Partner
August 20, 2025

Hi @Galina Rogozinsky 

Welcome to the community!

My first suggestion would be to create a Rovo agent that includes a URL to the repository as part of its instructions.

Another suggestion, whenever Rovo makes a mistake, write back to it telling him what the mistake was and why it failed, even copying and pasting the compilation error. This usually helps get better responses.

Lastly, ask it to test the code itself! 

With that being said, I don't know if we'll ever see a world where LLM's will give us code without compilation errors :D Hallucinations are a nasty thing

Like Jovana Dunisijevic likes this
Jovana Dunisijevic
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 24, 2025

Hey @Galina Rogozinsky !

When you add a dependency in pom.xml that points to a library only available in your company's private Bitbucket repository. Maven can't fetch it unless that library has been published to a Maven repository that your project can access.

By default, Maven looks in public repositories (like Maven Central), so if your internal library isn't published to a private Maven repository (like JFrog Artifactory or Nexus), the dependency won't resolve, leading to compilation errors.

Try this!

1) Publish the Internal Library to a Private Maven Repository

  • Your company should publish the internal library (from Bitbucket) to a private Maven repository (e.g., JFrog Artifactory, Nexus, or a company-hosted Maven repo).

  • Once published, add the repository details to your project's pom.xml under the <repositories> section, so Maven knows where to look for the dependency.

 

2) Configure Your Project to Use the Private Repository

  • In your pom.xml, add the repository configuration:

    <repositories> <repository> <id>company-internal</id> <url>https://your-artifactory-url/repository/maven-releases/</url> </repository> </repositories>
  • Make sure your dependency declaration matches the groupId, artifactId, and version used when publishing the library.

 

Alternatively, you can build the Internal library locally (as a temporary workaround)

  • If publishing to a Maven repo isn't possible yet, you can build the internal library locally and install it to your local Maven repository using:

    mvn install

    This makes the library available for your project on your machine only.

 

@Jaime Escribano (knowmad mood) also shared a good tip! 

Let us know if this helps you in any way!

Kindest regards,

Jov

TAGS
AUG Leaders

Atlassian Community Events