Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-31

Test failing because of system property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • 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.

      Attachments

        Activity

          People

            olamy Olivier Lamy
            pgier Paul Gier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: