Maven Integration for Eclipse

Project dependencies include test classes and resources

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 0.0.10
  • Fix Version/s: None
  • Component/s: Dependency Resolver
  • Labels:
    None
  • Environment:
    Eclipse 3.2, Windows, Maven 2.0.4
  • Number of attachments :
    0

Description

With maven project's test classes and resources are not exposed to the 'outside world'. But with the m2eclipse plugin version 0.0.10 the new "project dependency" feature makes test classes and resources visible to the project that has the dependency.

This results in inconsistent behaviour between the eclipse and the commandline world resulting in projects that compile with eclipse but won't on the command line and jUnit tests that fail within eclipse.

Issue Links

Activity

Hide
Stefan Seidel added a comment -

I think this is one of the issues we will have to live with. As Eclipse does not know a difference between normal execution and test execution (and it's not possible to set different class paths for different source folders AFAIK), it will be your responsibility to make sure that your maven artifacts are up to date.

Show
Stefan Seidel added a comment - I think this is one of the issues we will have to live with. As Eclipse does not know a difference between normal execution and test execution (and it's not possible to set different class paths for different source folders AFAIK), it will be your responsibility to make sure that your maven artifacts are up to date.
Hide
Grant Gardner added a comment -

Could this be a user choice in the build path whether to "export" the test source folders to dependent projects like the standard project dependency mechanism in Eclipse?

Show
Grant Gardner added a comment - Could this be a user choice in the build path whether to "export" the test source folders to dependent projects like the standard project dependency mechanism in Eclipse?
Hide
Eugene Kuleshov added a comment -

Guys, can you please create a test project and describe steps necessary to reproduce this issue. Then it would be easier to came up with some kind of solution. See some hints at http://docs.codehaus.org/display/M2ECLIPSE/How+To+Report+Issues

Show
Eugene Kuleshov added a comment - Guys, can you please create a test project and describe steps necessary to reproduce this issue. Then it would be easier to came up with some kind of solution. See some hints at http://docs.codehaus.org/display/M2ECLIPSE/How+To+Report+Issues

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: