[ 
https://issues.apache.org/jira/browse/MINVOKER-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958257#comment-17958257
 ] 

Olivier Lamy commented on MINVOKER-31:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-invoker-plugin#305|https://github.com/apache/maven-invoker-plugin/issues/305].
 

> Test failing because of system property
> ---------------------------------------
>
>                 Key: MINVOKER-31
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-31
>             Project: Maven Invoker Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>         Environment: Linux, Maven 2.0.8
>            Reporter: Paul Gier
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 1.2
>
>         Attachments: MINVOKER-31-surefire-update.patch
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to