Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-679

Test directories should not be exported to other projects/modules

    XMLWordPrintableJSON

Details

    Description

      For consistency with Maven dependency rules, the contents of src/test/java and src/test/resources should not be exported to the classpath of dependent projects. (This is handy for files like log4j.xml where a particularly verbose configuration might only make sense when testing the project itself.)

      In Eclipse, it's probably not possible to achieve this for a source folder like src/test/java (source folders are always exported), but at least src/test/resources could be added to the classpath as a class folder, rather than a source folder.

      It's probably best if this is optional, because you can't exclude */.java from a class folder, as you can for a source folder. It must be rare to put .java files in src/test/resources, but I'm sure they're out there!

      Attachments

        Activity

          People

            Unassigned Unassigned
            seanf Sean Flanigan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: