On 10/21/18 8:02 PM, Mark Raynsford wrote:
Hello.

I'd like to, for an arbitrary project (in other words, a project for
which I cannot edit the pom.xml files), copy the project's artifacts
and the project's dependency artifacts into a directory.

The maven-dependency-plugin copy-dependencies goal *nearly* does this,
but it'll fail as soon as it's asked to copy an artifact from the
reactor. For example, if I pick one of my projects at random and run:

$ cd git/com.github/io7m/jregions
$ mvn dependency:copy-dependencies -DincludeScope=runtime \
   -DoutputDirectory=/tmp/out/

I'd look into a packaging plugin like m-assembly-p with a "dir" format and not a dependency gathering plugin because project artifacts are not dependencies

https://maven.apache.org/plugins/maven-assembly-plugin/



--
Disclaimer;
This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand.


Reply via email to