maven - eclipse: build path with other projects, how to prevent test src from being included? -
in eclipse, have project a, depends on project b.
now add b build path of a. since separately need run junit tests on b, have src/test/java , src/test/resources of b in build path b too. when b included in a's path, these src/test code included a's path. causes lot of conflicts: example, declare beans same names in both projects, have conflicts.
i know can use m2eclipse plugin, in many cases, pom has special pre-compile plugins, m2eclipse not recognize these, , fails. have mvn eclipse:eclipse , generate "regular" eclipse project , , work there.
thanks! yang
source folders automatically exported dependent projects, think you're going have factor b project test packages test project depends on original project b.
ugly, can't think of way it.
Comments
Post a Comment