i am looking for days for a solution of my problem. I have to download a specific jar from the mvnrepository to a specific folder directly, and more important programatically. So i need to make a call to the repository to download the jar and then save it for further working.
I have the plugin/goal dependency:get in my mind, but how can i make a command like: mvn dependency:get ...
work? I heard about the invoker plugin, but cant figure out how to use it. (Again, i cant add the artifact/dependency in the pom.xml, because it has to be done while the programm is running)
Any ideas anyone? Everything would be much appreciated because i cant progress anyfurther now :(