You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Jungwirth (JIRA)" <ji...@codehaus.org> on 2006/10/13 19:22:52 UTC

[jira] Created: (MNG-2611) test scope should inherit provided scope

test scope should inherit provided scope
----------------------------------------

                 Key: MNG-2611
                 URL: http://jira.codehaus.org/browse/MNG-2611
             Project: Maven 2
          Issue Type: Improvement
          Components: Dependencies
    Affects Versions: 2.0.4
            Reporter: Paul Jungwirth
            Priority: Minor


When I run my tests, the classpath includes all my provided-scope dependencies. The docs online don't say they should be there, but I guess it makes sense, right? Provided scope means I need them to run, but they'll be available after I deploy. Therefore maven needs to provide them when I'm just running tests. So far so good.

The problem is that if my project relies on library A with a test scope, and A relies on B with a provided scope, I don't have B in my classpath when my project runs its tests.

Here is the setup:

Project depends on A with test scope.
A depends on B with provided scope.

When I run A's tests, I have B in my classpath.
When I run Project's tests, I don't have B in my classpath.

I see there were other bugs opened about how provided scope should be transitive, but they are closed. It looks like it is still not transitive through a test-scoped dependency.


-- 
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

        

[jira] Closed: (MNG-2611) test scope should inherit provided scope

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2611?page=all ]

Carlos Sanchez closed MNG-2611.
-------------------------------

      Assignee: Carlos Sanchez
    Resolution: Duplicate

> test scope should inherit provided scope
> ----------------------------------------
>
>                 Key: MNG-2611
>                 URL: http://jira.codehaus.org/browse/MNG-2611
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Dependencies
>    Affects Versions: 2.0.4
>            Reporter: Paul Jungwirth
>         Assigned To: Carlos Sanchez
>            Priority: Minor
>
> When I run my tests, the classpath includes all my provided-scope dependencies. The docs online don't say they should be there, but I guess it makes sense, right? Provided scope means I need them to run, but they'll be available after I deploy. Therefore maven needs to provide them when I'm just running tests. So far so good.
> The problem is that if my project relies on library A with a test scope, and A relies on B with a provided scope, I don't have B in my classpath when my project runs its tests.
> Here is the setup:
> Project depends on A with test scope.
> A depends on B with provided scope.
> When I run A's tests, I have B in my classpath.
> When I run Project's tests, I don't have B in my classpath.
> I see there were other bugs opened about how provided scope should be transitive, but they are closed. It looks like it is still not transitive through a test-scoped dependency.

-- 
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