Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Linux, Maven 2.0.8
Description
I'm getting a test failure like the following when I try to build the invoker plugin:
testSimpleRunValidate(org.apache.maven.plugin.invoker.InvokerMojoTest) Time elapsed: 0.139 sec <<< ERROR!
java.lang.IllegalStateException: Maven application directory was not specified, and ${maven.home} is not provided in the system properties. Please specify at least on of these.
at org.apache.maven.shared.invoker.MavenCommandLineBuilder.checkRequiredState(MavenCommandLineBuilder.java:119)
at org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenCommandLineBuilder.java:58)
I tried setting "maven.home" from the command line, but it still gave the same error. For some reason the properties are not being passed to the junit tests.
Upgrading the version of surefire to 2.4.2 seems to fix the problem.