I need to use JARs in my maven project. But these JARs are located on hdd disc, like d:\MyJar.jar
. I need use it in my project to resolve dependencies.
I know that I can install it in local maven repository, and use it. But my client doesn't want this for some reasons (scared of some licence agreements or something, it doesn't matter, he insists).
In Intellij Idea I can go to Project Structure and add libraries there, but I need to compile it from command line with - mvn package
command.
So, I need to add myjar.jar to classpath without installing it in maven repository, using only maven.
How can I do this?