[logback-user] jcl-over-slf4j problem
lee json
jsonlee.ft at gmail.com
Fri May 23 11:50:40 CEST 2014
I understand this might not logback's issue, but I would like to
collect more information so hope to fix my problem.
Basically there is no problem to execute unit tests if I removed all
logback related dependency. I am just wondering what inside
jcl-over-slf4j may collide against dependencies in my project.
I notice that when I add jcl-over-slf4j as dependency
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.5</version>
</dependency>
this leads to my test case not being executed with maven result
printed "no tests were executed!". My scala test version is 2.10
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.10</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
and junit version is 4.8.1
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
</dependency>
If I comment out jcl-over-slf4j, maven reports "there are tests failure"
Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test)
...: There are test failures
Please refer to.../target/surefire-reports for the individual test results.
But surefire-reports folder actually is not created
$ ls target/surefire-reports
ls: cannot access target/surefire-reports: No such file or directory
Environment I use
Maven version is 3.0.5
Java version 1.6.x
I appreciate any suggestions.
Thanks
More information about the Logback-user
mailing list