Maven doesn't find org.junit even though it's in the dependencies

前端 未结 3 1541
孤城傲影
孤城傲影 2021-02-05 03:36

I wanted to add a test to my small project (please note I removed some bits from the code & changed package names, so if there\'s any error you see regarding this it might b

3条回答
  •  -上瘾入骨i
    2021-02-05 03:59

    By default , maven looks at these folders for java and test classes respectively - src/main/java and src/test/java

    When the src is specified with the test classes under source and the scope for junit dependency in pom.xml is mentioned as test - org.unit will not be found by maven.

提交回复
热议问题