Discussion:
maven dependency plugin exclude test dependencies
Erwin Mueller
2010-12-14 01:35:22 UTC
Permalink
Hello,

Can I exclude test dependencies in the maven-dependency-plugin? I'm
using this plugin to copy all dependencies to a specific directory so the
izpack plugin can package them into an installation application. However, it
seems the dependency plugin is also copying the test dependencies of the
project, like junit, fest-swing-junit, etc. I like to exclude them without to
specify each dependency explicit in the excludeGroupIds tag.

Thank you, Erwin.
--
Erwin Mueller, ***@deventm.org
http://www.global-scaling-institute.de/
Stephen Connolly
2010-12-14 10:46:23 UTC
Permalink
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeTransitive
Post by Erwin Mueller
Hello,
       Can I exclude test dependencies in the maven-dependency-plugin? I'm
using this plugin to copy all dependencies to a specific directory so the
izpack plugin can package them into an installation application. However, it
seems the dependency plugin is also copying the test dependencies of the
project, like junit, fest-swing-junit, etc. I like to exclude them without to
specify each dependency explicit in the excludeGroupIds tag.
Thank you, Erwin.
--
http://www.global-scaling-institute.de/
---------------------------------------------------------------------
Erwin Mueller
2010-12-14 13:31:39 UTC
Permalink
Hallo,

I did know about this but it's not what I want. I want to exclude all
dependencies in the test scope. I don't want to exclude transitive
dependencies.

But you pointed me in the documentation which I overlooked. I need
excludeScope. Thank you.
Post by Stephen Connolly
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-m
ojo.html#excludeTransitive
Post by Erwin Mueller
Hello,
Can I exclude test dependencies in the maven-dependency-plugin?
I'm using this plugin to copy all dependencies to a specific directory
so the izpack plugin can package them into an installation application.
However, it seems the dependency plugin is also copying the test
dependencies of the project, like junit, fest-swing-junit, etc. I like
to exclude them without to specify each dependency explicit in the
excludeGroupIds tag.
Thank you, Erwin.
--
http://www.global-scaling-institute.de/
---------------------------------------------------------------------
---------------------------------------------------------------------
--
Erwin Mueller, ***@deventm.org
http://www.global-scaling-institute.de/
Loading...