Hi,

 

I'd like to write a script that downloads a number of artefacts stored
in a maven repo. 

 

The main artefacts are jar files, but I have attached a zip file
containing all dependencies, start and stop scripts and configuration
files so that i can distribute this to customers. It is the zip that I'm
trying to download and unpack to a test environment.

 

Each subsequent time it is run, any snapshots that have been updated
would be downloaded and unzipped.

 

I've tried "mvn dependency:unpack-dependencies" but I've had the
following issues:

 

-          It doesn't delete the old directory when updating (i could do
this myself but i don't want to delete directories that won't be
updated)

-          It downloads all transitive dependencies even if they are not
going to be unpacked

 

What is the best way to do this in maven?

 

Thanks,

 

Rich

Reply via email to