java - Maven Eclipse plugin doesn't regard Maven failsave plugin? -
i'm using maven build project , eclipse project settings. eclipse:eclipse target generates .classpath file eclipse regarding dependencies , other project settings source directory, test source directory , on. added maven failsafe plugin , defined <testsourcedirectory>/test/integration</testsourcedirectory>
beside normal (junit) test directory.
- test/unit -> contains junit test cases executes in maven "test" phase
- test/integration -> contains integration (maybe junit) test cases, executed in maven phase "integration-test".
works fine eclipse plugin won't consider <testsourcedirectory>
, won't add entry .claspath file :-( there way manipulate eclispe plugin add classpath entry failsafe plugin? following:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-eclipse-plugin</artifactid> <configuration> <additionalconfig> <file> <name>.classpath</name> <content> <![cdata[<classpathentry kind="src" path="test/integration" output="build/compile/test-classes"/>]]> </content> </file> </additionalconfig> </configuration> </plugin>
but results in overidden .classpath file whith above entry single line.. :-(
has idea slve it?
cheers, yellomen
the easiest way like:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-eclipse-plugin</artifactid> <configuration> <additionalclasspathentries> <classpathentry> <kind>src</kind> <path>test/integration</path> </classpathentry> </additionalclasspathentries> </configuration> </plugin>
but doesn't work...
Comments
Post a Comment