You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Edwin Punzalan (JIRA)" <ji...@codehaus.org> on 2008/10/25 09:23:02 UTC

[jira] Created: (MNG-3802) test scoped dependencies are being resolved even if tests are skipped

test scoped dependencies are being resolved even if tests are skipped
---------------------------------------------------------------------

                 Key: MNG-3802
                 URL: http://jira.codehaus.org/browse/MNG-3802
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories, Dependencies
    Affects Versions: 2.0.9
            Reporter: Edwin Punzalan


I'd think that dependencies with scope=test shouldn't be resolved if tests are skipped.

To reproduce, try building continuum 1.3-SNAPSHOT with an empty local repo (or just remove continuum-store:1.3-SNAPSHOT:tests; note the "tests" classifier) with tests skipped.

When the build reaches continuum-data-management, it will fail saying the dependency continuum-store:1.3-SNAPSHOT:tests cannot be resolved.



-- 
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] Commented: (MNG-3802) test scoped dependencies are being resolved even if tests are skipped

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151926#action_151926 ] 

Wendy Smoak commented on MNG-3802:
----------------------------------

Building with -Dmaven.test.skip=true fails due to the missing test dependency, but with -Dmaven.test.skip.exec it succeeds.

The Surefire docs say skipExec is deprecated and to use skipTests instead, but the behavior is not the same.
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

> test scoped dependencies are being resolved even if tests are skipped
> ---------------------------------------------------------------------
>
>                 Key: MNG-3802
>                 URL: http://jira.codehaus.org/browse/MNG-3802
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories, Dependencies
>    Affects Versions: 2.0.9
>            Reporter: Edwin Punzalan
>
> I'd think that dependencies with scope=test shouldn't be resolved if tests are skipped.
> To reproduce, try building continuum 1.3-SNAPSHOT with an empty local repo (or just remove continuum-store:1.3-SNAPSHOT:tests; note the "tests" classifier) with tests skipped.
> When the build reaches continuum-data-management, it will fail saying the dependency continuum-store:1.3-SNAPSHOT:tests cannot be resolved.

-- 
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-3802) test scoped dependencies are being resolved even if tests are skipped

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3802.
-----------------------------

      Assignee: Brett Porter
    Resolution: Duplicate

> test scoped dependencies are being resolved even if tests are skipped
> ---------------------------------------------------------------------
>
>                 Key: MNG-3802
>                 URL: http://jira.codehaus.org/browse/MNG-3802
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories, Dependencies
>    Affects Versions: 2.0.9
>            Reporter: Edwin Punzalan
>            Assignee: Brett Porter
>
> I'd think that dependencies with scope=test shouldn't be resolved if tests are skipped.
> To reproduce, try building continuum 1.3-SNAPSHOT with an empty local repo (or just remove continuum-store:1.3-SNAPSHOT:tests; note the "tests" classifier) with tests skipped.
> When the build reaches continuum-data-management, it will fail saying the dependency continuum-store:1.3-SNAPSHOT:tests cannot be resolved.

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