[
http://jira.codehaus.org/browse/MNG-4444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4444.
----------------------------------
Resolution: Not A Bug
Assignee: Benjamin 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