[ 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