Filter test dependencies copied by maven's copy:copy-dependencies plugin

My situation is pretty much the same than the one exposed in this issue except that the proposed solution using -DincludeScope=runtime doesn't work for me :

I build jar

I want to copy the dependency in a folder for running the application. In this folder, I don't need the tests related classes/libraries.

(but out of scope here) I build an archive file (.war) for deploying purpose. This archive does not contain the tests libraries.

My pom looks like :





my.company.group

common

4.0.0-SNAPSHOT

compile





my.company.group

common

4.0.0-SNAPSHOT

test-jar

test





As you may notice, we are using a common project providing generic classes for this project...

Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts