Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Backlog
-
Component/s: Maven Surefire Plugin
-
Labels:None
-
Environment:tested on Win2K with cygwin and JDK1.5, but this is indifferent.
-
Patch Submitted:Yes
-
Number of attachments :
Description
I wanted to run the ant testcases using the maven-surefire-plugin (I actually built all the ant jars using maven).
The problem is that the plugin sets a system property basedir that ant cannot override. Since the BuildFileTest s are heavily dependent upon this property that ant normally sets to be the directory of the build file, most tests fail ...
Here a patch adding the possibility not to set the basedir by setting a configuration attribute omitbasedir to true.
The pom.xml of maven-surefile-plugin was also missing a dependency to surefire-api (or at least I needed to add this to build properly).
Regards,
Antoine
I hesitate to add another option to a plugin that already has too many options; this one is quite confusing. You refer to "the Ant test cases." Which Ant test cases? I assume they must have Java classes associated with them, because Surefire only knows how to execute Java classes. Would it be possible for you to unset the basedir property there?