You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2008/04/17 23:29:55 UTC

[jira] Created: (MINVOKER-31) Test failing because of system property

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

        

[jira] Updated: (MINVOKER-31) Test failing because of system property

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MINVOKER-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MINVOKER-31:
---------------------------------

         Assignee: Olivier Lamy
    Fix Version/s: 1.2

> 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
>            Assignee: Olivier Lamy
>             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 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

        

[jira] Updated: (MINVOKER-31) Test failing because of system property

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MINVOKER-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier updated MINVOKER-31:
------------------------------

    Attachment: MINVOKER-31-surefire-update.patch

> 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
>         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 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

        

[jira] Closed: (MINVOKER-31) Test failing because of system property

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MINVOKER-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MINVOKER-31.
--------------------------------

    Resolution: Fixed

fixed in rev 649291.
Thanks.


> 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
>            Assignee: Olivier Lamy
>             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 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