Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25711

Resolve broken build by updating import order of HostStateEntity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      Using maven: 3.8.6

      mvn build fails with error:

      [INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ ambari-server ---
      [INFO] Starting audit...
      [ERROR] /Users/vjasani/Documents/src/ambari-trunk/ambari/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostStateEntity.java:23: Wrong order for 'org.apache.commons.lang.StringUtils.defaultString' import. [ImportOrder]
      Audit done.
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Ambari Main 3.0.0.0-SNAPSHOT ....................... SUCCESS [  7.489 s]
      [INFO] Apache Ambari Project POM 3.0.0.0-SNAPSHOT ......... SUCCESS [  0.233 s]
      [INFO] Ambari Web 3.0.0.0-SNAPSHOT ........................ SUCCESS [01:22 min]
      [INFO] Ambari Views 3.0.0.0-SNAPSHOT ...................... SUCCESS [  2.443 s]
      [INFO] Ambari Admin View 3.0.0.0-SNAPSHOT ................. SUCCESS [ 28.780 s]
      [INFO] ambari-utility 3.0.0.0-SNAPSHOT .................... SUCCESS [  4.065 s]
      [INFO] Ambari Server SPI 3.0.0.0-SNAPSHOT ................. SUCCESS [  1.928 s]
      [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SUCCESS [  0.742 s]
      [INFO] Ambari Server 3.0.0.0-SNAPSHOT ..................... FAILURE [01:27 min]
      [INFO] Ambari Functional Tests 3.0.0.0-SNAPSHOT ........... SKIPPED
      [INFO] Ambari Agent 3.0.0.0-SNAPSHOT ...................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  03:37 min
      [INFO] Finished at: 2022-08-15T15:39:42-07:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project ambari-server: Failed during checkstyle execution: There is 1 error reported by Checkstyle 8.9 with /Users/vjasani/Documents/src/ambari-trunk/ambari/ambari-server/checkstyle.xml ruleset. -> [Help 1]
      [ERROR]  

       

      Skipping checkstyle as part of mvn command would be fine but let's fix this as well.

      Attachments

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              vjasani Viraj Jasani
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h