How to prevent eclipse from deploying test classes on Tomcat?

后端 未结 2 646
终归单人心
终归单人心 2020-12-05 09:55

I have a Maven project, containing the typical folders src/main/java and src/test/java and I am using Eclipse 3.7 with m2e 1.0.and Maven Integratio

2条回答
  •  借酒劲吻你
    2020-12-05 10:15

    It is configurable in Eclipse how to handle and deploy the different folders, somehow the Eclipse plugin M2Eclipse should configure Eclipse right, it seams that the configuration sometimes is done and sometimes not.

    So one has to check this two settings:

    • Project Properties\Java Build Path(Tab)Source : Outputfolder for /src/test/java as well as /src/test/resources must be /target/test-classes

    • Project Properties\Deployment Assembly : There must be NO entry for /src/test/java or /target/test-classesenter image description here

提交回复
热议问题