user1741249
user1741249

Reputation: 43

Most efficient way of artifact copy?

I'm software delivery engineer, I have requirement to deliver artifact as a product to the customer. Using maven I can download artifact from the repository. Once download artifact I need to copy these artifact to the specific folder location What would be the best way to do that?

How to do that using java?

Upvotes: 0

Views: 62

Answers (1)

Duncan Jones
Duncan Jones

Reputation: 69369

If you are delivering a finished product to a customer, I would strongly recommend you package the deliverable using Maven itself, perhaps the Maven release plugin. This will allow you to produce a structured output including binaries, dependencies, docs, etc.

Once you have configured the release format to suit your needs, you can give customers the result of your Maven build. No need to then worry about how to do this in Java.

Upvotes: 1

Related Questions