Have slf4j-simple as an "always there" <scope>test dependency. 82/46882/2
authorMichael Vorburger <vorburger@redhat.com>
Thu, 13 Oct 2016 13:01:03 +0000 (15:01 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 13 Oct 2016 14:45:19 +0000 (14:45 +0000)
commitd5aecae24fb4204513a96c4e632ca85dbc41f81a
tree88028e1af06756a575b62474da176a0478856445
parent0f3421b7ac3b48f10e59d01d856b523a317e303f
Have slf4j-simple as an "always there" <scope>test dependency.

The "always there" as in always, literally, not just in
<dependencyManagement>.  This makes sense because in (unit and
component, not integration) tests you want logging to "just work" - you
don't want to have to remember to add slf4j-simple yourself as a
dependency every time (and you certainly don't want to have to add
logback every time, and configure it with an XML or properties; for
every project).

Also the problem with manually adding a slf4j-simple dependency to
projects with tests is that there is a risk of it getting accidentally
removed, because "mvn dependency:analyze" will find it's "not needed";
as happened e.g. in
https://git.opendaylight.org/gerrit/#/c/45090/6/vpnservice/aclservice/impl/pom.xml

Change-Id: I5af53bbd8d69ad5cebac08f97225c2f9cbe60ab7
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
odlparent/pom.xml