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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -