Multiple Dependency Scopes in POM

后端 未结 6 1776
离开以前
离开以前 2021-02-05 01:02

I have a dependency in my POM that needs to be set to \"provided\" so it is not included at compilation, but it can still be referenced within my project. I would like the same

6条回答
  •  孤街浪徒
    2021-02-05 02:02

    Use the maven-surefire-plugin to run your junit tests. The scope of provided will also make it available on the test classpath.

提交回复
热议问题