Reputation: 472
Our project is using Nexus Repository Manager to store all the jars. Along with the jar I see that under a group there are other files like pom.xml, .md5, .sha1 file. I am in need of these files at our server startup. Is there a way that I can download all the files under a particular group programatically using Java/Curl command/mvn dependency command at runtime?
Upvotes: 0
Views: 2336
Reputation: 472
I could do it with the simple approach. Club all the xmls into a JAR/ZIP file and upload that zip file under my groupId to the Maven Repository. Then programatically use CURL/WGET to download the zip and unzip the contents of that zip file (using any available utility) at runtime.
Hope its helpful to someone somewhere sometime. :)
Upvotes: 0
Reputation: 920
Maven also uses local repository for caching. The default location is Default: ${user.home}/.m2/repository
. You can check this setting in file settings.xml under [maven_dir]/conf/.
To update dependencies, use -U
option. i.e. mvn clean install -U
Do not forget setting nexus repo inside pom.xml file http://maven.apache.org/pom.html#Repository
Upvotes: 1