4

I'm trying to download a couple of dependencies from the command line using dependency:copy -Dartifact=...

However, one artifact looks like this as dependency

<dependency>
  <groupId>foo</groupId>
  <artifactId>xml-schemas</artifactId>
  <version>1.10.0-SNAPSHOT</version>
  <classifier>public</classifier>
  <type>zip</type>
</dependency>

How can I download this? What are the correct Maven coordinates?

eerriicc
  • 1,124
  • 4
  • 17
  • 29

1 Answers1

5

Make sure you are using version 2.7 or later of the dependency plugin. Then it's

-Dartifact=<groupId>:<artifactId>:<version>:<type>:<classifier>

There is an example in the dependency:get section of the Maven dependency plugin usage docs.

user944849
  • 14,524
  • 2
  • 61
  • 83