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

Carlin Scott commented on MNG-4444:
-----------------------------------

According to Maven documentation:
{quote}
*test*
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.
{quote}
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

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: https://jira.codehaus.org/browse/MNG-4444
>             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: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to