[ 
https://jira.codehaus.org/browse/MRESOURCES-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=275377#comment-275377
 ] 

Haixing Hu commented on MRESOURCES-152:
---------------------------------------

Ok, I found that the problem seems caused by the following component:

org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1

Here is the dependency tree of the maven-resources-plugin:

[INFO] 
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ 
maven-resources-plugin ---
[INFO] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.3
[INFO] +- org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[INFO] +- org.apache.maven:maven-project:jar:2.0.6:compile
[INFO] |  +- org.apache.maven:maven-profile:jar:2.0.6:compile
[INFO] |  +- org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[INFO] |  \- org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[INFO] +- org.apache.maven:maven-core:jar:2.0.6:compile
[INFO] |  +- org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[INFO] |  +- 
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[INFO] |  +- 
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[INFO] |  |  +- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[INFO] |  |  |  \- jtidy:jtidy:jar:4aug2000r7-dev:runtime
[INFO] |  |  \- xml-apis:xml-apis:jar:1.0.b2:runtime
[INFO] |  +- org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[INFO] |  |  \- org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[INFO] |  +- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[INFO] |  +- org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[INFO] |  +- org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[INFO] |  +- commons-cli:commons-cli:jar:1.0:compile
[INFO] |  +- org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[INFO] |  |  \- org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[INFO] |  +- org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[INFO] |  +- 
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[INFO] |  +- org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[INFO] |  |  \- com.jcraft:jsch:jar:0.1.27:runtime
[INFO] |  \- classworlds:classworlds:jar:1.1:compile
[INFO] +- org.apache.maven:maven-artifact:jar:2.0.6:compile
[INFO] +- org.apache.maven:maven-settings:jar:2.0.6:compile
[INFO] +- org.apache.maven:maven-model:jar:2.0.6:compile
[INFO] +- org.apache.maven:maven-monitor:jar:2.0.6:compile
[INFO] +- 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[INFO] |  \- junit:junit:jar:3.8.1:compile
[INFO] +- org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[INFO] +- org.apache.maven.shared:maven-filtering:jar:1.0-beta-4:compile
[INFO] |  \- org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
[INFO] +- org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
[INFO] \- 
org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1:test

> The dependency of JUnit 3.8.1 may override the depended JUnit version of the 
> project
> ------------------------------------------------------------------------------------
>
>                 Key: MRESOURCES-152
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-152
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Haixing Hu
>            Priority: Blocker
>
> As the following pages state:
> http://maven.apache.org/plugins/maven-resources-plugin/dependencies.html
> The maven resources plugin itself depends on the JUnit 3.8.1, and any project 
> using this plugin will be introduced a transitive dependency of JUnit 3.8.1. 
> This will cause the projects which use JUnit 4.x in their unit test fail to 
> pass the compilation under the command line (i.e., via "mvn install"), but 
> they could be compiled under eclipse.
> I can't understand why this plugin has to introduce the dependency of Junit. 
> Is it really necessary? If it is, could you please upgrade the JUnit to 
> version 4 or above? Since JUnit 4.x provides a lot of assertArrayEquals(...) 
> functions, which are really widely used.
> Thank you in advance.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to