I have a local Jar file that I want to add as a dependency for a Maven project that I am working on.
That is easy to do as this answer states.
The problem is that this Jar file requires a foo.classifier
file to work properly.
This Jar file is meant to be run by command line (java -jar bar.jar {argument}
). The Jar and the classifier files are in the same directory, so everything works just fine.
However, from my project, I want to call the Jar file using its methods and not running a process.
I added the Jar file as a dependency and managed to call the main method that receives the argument, however, it doesn't work properly because of the foo.classifier
the file is not set as a dependency for that Jar file to work.
Does anyone know how can I set it as a dependency of that Jar file?