Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6545

Scope runtime test

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      Maven should permit to include a dependency with scope restricted to test and runtime. Currently we have to choose between test and runtime, having both would be better.

      It would permit Maven to check that the test code does not depend (for compilation) on those libraries. And you wouldn’t get annoyed by completion proposals in your IDE coming from those runtime libraries.

      It is also conceptually more elegant and would make the intent clear to other contributers (“make sure your test code does not depend on this library”).

      Also discussed here and here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oliviercailloux Olivier Cailloux
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: