Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5574

Windows 'mvn clean install' fails on Groovy Tests

    XMLWordPrintableJSON

Details

    Description

      Referenced in a recent PR discussion:

       

       

      At the moment my windows installs fail on this NifiGroovyTest, where it tries to generate and reference a linux style path. I saw a recent email discussion that seemed to bring up a similar issue here.

      mvn -version

      Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T02:58:13-05:00)
      `Maven` home: C:\Program Files\apache-maven-3.5.2
      Java version: 1.8.0_151, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.8.0_151\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 10", version: "10.0", arch: "amd64", family: `"windows"`
      
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.nifi.NiFiGroovyTest
      [ERROR] Tests run: 8, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.667 s <<< FAILURE! - in org.apache.nifi.NiFiGroovyTest
      [ERROR] testInitializePropertiesShouldSetBootstrapKeyFromFile(org.apache.nifi.NiFiGroovyTest)  Time elapsed: 0.495 s  <<< ERROR!
      java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/nlewis/Desktop/Projects/NIFI/nickOfficialNifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-runtime/target/test-classes/\NiFiProperties\password-testInitializePropertiesShouldSetBootstrapKeyFromFile.txt
              at org.apache.nifi.NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile(NiFiGroovyTest.groovy:161)
      
      [ERROR] testMainShouldHandleMalformedBootstrapKeyFromFile(org.apache.nifi.NiFiGroovyTest)  Time elapsed: 0.001 s  <<< ERROR!
      java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/nlewis/Desktop/Projects/NIFI/nickOfficialNifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-runtime/target/test-classes/\NiFiProperties\password-testMainShouldHandleMalformedBootstrapKeyFromFile.txt
              at org.apache.nifi.NiFiGroovyTest.testMainShouldHandleMalformedBootstrapKeyFromFile(NiFiGroovyTest.groovy:141)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Errors:
      [ERROR]   NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile:161 ▒ InvalidPath
      [ERROR]   NiFiGroovyTest.testMainShouldHandleMalformedBootstrapKeyFromFile:141 ▒ InvalidPath
      [INFO]
      [ERROR] Tests run: 8, Failures: 0, Errors: 2, Skipped: 0
      

       

      Attachments

        Activity

          People

            jtstorck Jeff Storck
            nlewis Nicholas Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m