Use a local maven repository

Completed

I am running teamcity server and the build agent as docker containers on a mac. Some of the dependencies for my project are only available locally (on my mac, under /Users/myuser/.m2/repository)

I am trying to understand how to configure the runner to use this location first, before checking public maven repositories; without these assets the build fails.

Can anyone help configure this?

1
1 comment

Hi Burhan,

I believe you should try mounting your repo as a volume to your agent and server containers. 

You also can try using docker-compose to mount the volume.

Once the volume is mounted, TeamCity should understand the absolute path inside the container where it is located.

Best regards,

Mikhail Efremov

 

0

Please sign in to leave a comment.