Maven download file from repository






















The first way is to specify in a POM which repositories you want to use. That is supported both inside and outside of build profiles:. If you specify repositories in profiles you must remember to activate that particular profile!

Learn how your comment data is processed. I have a java application, and I want to deploy it in a script file. In the script file, it should first download the java app jar file to a local directory from a central repository, and them run the jar file in java command line.

I do not know how to download my java app jar file to a specified folder in the script, my question is not downloading the jar file to maven local repository, but download it to any local folder. Thanks a lot. This Hint saved my week! Notify of. To make sure you are using the right version of the plugin, you'll need to use the 'fully qualified name':. As of version 2.

It should point to a filename not a directory for the destination artifact. See the parameter page for additional parameters that can be used. I tried things like: but I think I'm barking up the wrong tree since it appears that the install plugin is used to copy locally built files into the local repository, rather than download remote artifacts into the local repository.



0コメント

  • 1000 / 1000