You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/11/15 13:39:56 UTC

[jira] Issue Comment Edited: (MNG-4444) Unable to use "test" scope dependencies

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

Benjamin Bentmann edited comment on MNG-4444 at 11/15/09 6:38 AM:
------------------------------------------------------------------

Stricter validation of the POM than in Maven 2.x is by design. Plugin dependencies of scopes other than the ones listed in the error message make no sense. When Maven executes a plugin, we talk about a runtime classpath and test-scope dependencies in general don't contribute to this.

Simply remove the {{<scope>}} from the plugin dependency in your POM.

      was (Author: bentmann):
    Stricter validation of the POM than in Maven 2.x is by design. Plugin dependencies of scopes other than the ones listed in the error message make no sense. When Maven executes a plugin, we talk about a runtime classpath and test-scope dependencies in general don't contribute to this.
  
> Unable to use "test" scope dependencies
> ---------------------------------------
>
>                 Key: MNG-4444
>                 URL: http://jira.codehaus.org/browse/MNG-4444
>             Project: Maven 2
>          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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira