maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Scott (JIRA)" <>
Subject [jira] (MNG-4444) Unable to use "test" scope dependencies
Date Fri, 15 Feb 2013 00:38:14 GMT


Carlin Scott commented on MNG-4444:

According to Maven documentation:
This scope indicates that the dependency is not required for normal use of the application,
and is only available for the +test compilation+ and execution phases.

So if my plugin is only needed for test compilation, shouldn't I use the test scope?
> Unable to use "test" scope dependencies
> ---------------------------------------
>                 Key: MNG-4444
>                 URL:
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-3
>            Reporter: Andrei Solntsev
>            Assignee: Benjamin Bentmann
>            Priority: Blocker
> Maven build fails with the following error message:
> "[ERROR]   The project bla.bla-SNAPSHOT (C:\bla\pom.xml) has 1 error
> [ERROR]     'build.plugins.plugin[org.apache.maven.plugins:maven-surefire-plugin].dependencies.dependency.scope'
must be one of [compile, runtime, system] for org.testng:testng:jar:jdk15 but is 'test'.
> Maven2.* build this project without problems.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message