| Summary: | Scoped Dependency Containers in Eclipse | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Christoph Grotz <grotz> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | fbricon, grotz, igor |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Christoph Grotz
Christoph, if you're using m2e with wtp projects, you should install m2e-wtp (https://github.com/sonatype/m2eclipse-wtp/wiki), it adds extra configuration to the Maven Classpath container so that test and provided dependencies are not deployed to WTP servers. While having separate scoped Classpath Libraries might seem a good idea on paper, it would also bring discrepancies between Maven and Eclipse's classpath behavior, as classpath order would be changed : You'd get all test dependencies first, then compile, then provided (well, in the order in which these libraries are added to the classpath), which would not reflect and potentially break Maven's natural classpath order. As explained in comment #1, separate classpath container per dependency scope will result in wrong compile classpath order. |