I've narrowed down the problem to jcl-over-slf4j.
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.5</version>
</dependency>
When it's commented out, the test case will be executed, but not when
it's listed in dependency section.
I also have scalatest 2.10 and junit 4.8.1 in the dependency section.
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.10</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
</dependency>
What's common/ possible factors that may affect if test cases will be executed?
I appreciate any suggestions.
On 23 May 2014 04:23, lee json <[email protected]> wrote:
> I encounter a problem that testing doesn't get executed. Searching on
> the internet, people say that ceoms from old junit version suppressing
> the newer one. Checking with -X some plugin looks suspicious.
>
> - maven-antrun-plugin:1.6:run (save-version)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
> [DEBUG] junit:junit:jar:3.8.1:compile
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
>
> - maven-remote-resources-plugin:1.1:process
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile
> [DEBUG] junit:junit:jar:3.8.1:compile
> [DEBUG] velocity:velocity-dep:jar:1.4:compile
>
>
> - maven-resources-plugin:2.4:resources (default-resources)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
> [DEBUG] junit:junit:jar:3.8.1:compile
>
> - maven-scala-plugin:2.15.0:compile (default)
> [DEBUG] org.scala-tools:maven-scala-plugin:jar:2.15.0:
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
> [DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
> [DEBUG] junit:junit:jar:3.8.1:compile
>
> - gmaven-plugin:1.2:execute (default)
> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-loader:jar:1.2:compile
> [DEBUG]
> org.codehaus.gmaven.feature:gmaven-feature-support:jar:1.2:compile
> [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-13:compile
> [DEBUG] junit:junit:jar:3.8.2:compile (version managed from 3.8.1)
>
> I tried to add tag excluding junit with old version in those plugins
>
> <dependency>
> <groupId>org.codehaus.plexus</groupId>
> <artifactId>plexus-container-default</artifactId>
> <version>1.0-alpha-9-stable-1</version>
> <exclusions>
> <exclusion>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> but does not working.
>
> Is there any place I can check for finding the possible root cause? Or
> what additional tag need to be added for fixing this problem?
>
> Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]