Eclipse classpath entries only used for tests

后端 未结 5 724
我寻月下人不归
我寻月下人不归 2020-12-01 23:32

In Maven, you can have compile-time dependencies and test dependencies. This is a feature I love, and the M2Eclipse plugin makes this available in Eclipse,

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 00:26

    Actually if you look in eclipse as to how Maven integrates dependencies it will not make the difference in test or runtime dependencies your test libraries are always accessible.

    Maven will keep the difference when packaging the application and when it generates the runtime classpath if maven has control over the execution of that part. When eclipse is concerned Maven simply adds them all without question to the eclipse build path.

    Why is it you need to have this separated like so ? What will this help you acheive ?

提交回复
热议问题