Test failing because of system property
---------------------------------------
Key: MINVOKER-31
URL: http://jira.codehaus.org/browse/MINVOKER-31
Project: Maven 2.x Invoker Plugin
Issue Type: Bug
Environment: Linux, Maven 2.0.8
Reporter: Paul Gier
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira