I am using external jars added through scope = system with ${basedir}/src/main/java/... added as a systempath under the dependency sub group in pom.xml. Whenever I use the project locally from IntelliJ, there are no warnings or error. However when i try to start the .jar file from a docker container i get exceptions about the dependency.
I have tried adding the jars though Libraries under project structure in IntelliJ and just adding the jars in libs folder under the root. First i was providing the absolute path but then i changed it to ${basedir} because the absolute path wasn't mapped as a volume on the docker container. Is there any way i can pack the external jars with the project jar so i could use it in a docker container?