I have an artifact with common functions of my project installed as a jar in the local mavel repository, lets call it common.jar. Now I want to use these functions in my fabric chaincode. I added the dependency in the gradle build file of the chaincode, Intellij can built the chaincode with no problems. I now try to deploy the chaincode to the test-network of the fabric samples. I.e.
peer lifecycle chaincode install chaincode.tar.gz
This will spin up gradle inside the docker-container which is the fabric peer node. This gradle instance then tells me it cannot find my common.jar. I suspect the gradle inside the docker container cannot access the local maven repo where the jar resides. I am quite unfamiliar with docker configurations and the fabric sample network config is huge. How can I make my local maven repo availiable inside the dockered peer?