can't be indexed twice - testSourceDirectory and sourceDirectory are same

后端 未结 4 865
执笔经年
执笔经年 2021-01-03 21:05

I have created performance test as a maven submodule to my main module. All the test classes are written under src/main/java and not src/test

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 21:38

    If project does not follow default Maven directory structure then in project's pom you can explicitly specify where is located the part of source code and the part of tests:

    
        src/main/foo
        src/test/bar
    
    

提交回复
热议问题