liusheng created AMBARI-25631:
---------------------------------

             Summary: wrong import order in HostStateEntity.java
                 Key: AMBARI-25631
                 URL: https://issues.apache.org/jira/browse/AMBARI-25631
             Project: Ambari
          Issue Type: Bug
            Reporter: liusheng


There is a wrong import order issue in HostStateEntity.java

When build Ambari with *mvn install*, it will raise following error:
{code:java}
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ ambari-server ---  
                                                                                
                                                  
[INFO] Starting audit...                                                        
                                                                                
                                                  
[ERROR] 
/home/ambari/ambari/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostStateEntity.java:36:
 Wrong order for 'java.util.Objects' import. [ImportOrder]                      
            
Audit done.                                                                     
                                                                                
                                                  
[INFO] ------------------------------------------------------------------------ 
                                                                                
                                                  
[INFO] Reactor Summary:                                                         
                                                                                
                                                  
[INFO]                                                                          
                                                                                
                                                  
[INFO] Ambari Main 3.0.0.0-SNAPSHOT ....................... SUCCESS [  4.104 s] 
                                                                                
                                                  
[INFO] Apache Ambari Project POM 3.0.0.0-SNAPSHOT ......... SUCCESS [  0.070 s] 
                                                                                
                                                  
[INFO] Ambari Web 3.0.0.0-SNAPSHOT ........................ SUCCESS [01:09 min] 
                                                                                
                                                  
[INFO] Ambari Views 3.0.0.0-SNAPSHOT ...................... SUCCESS [  1.251 s] 
                                                                                
                                                  
[INFO] Ambari Admin View 3.0.0.0-SNAPSHOT ................. SUCCESS [ 15.388 s] 
                                                                                
                                                  
[INFO] ambari-utility 3.0.0.0-SNAPSHOT .................... SUCCESS [09:26 min] 
                                                                                
                                                  
[INFO] Ambari Server SPI 3.0.0.0-SNAPSHOT ................. SUCCESS [ 12.800 s] 
                                                                                
                                                  
[INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SUCCESS [ 39.942 s] 
                                                                                
                                                  
[INFO] Ambari Server 3.0.0.0-SNAPSHOT ..................... FAILURE [31:39 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:  43:32 min                                                   
                                                                                
                                                  
[INFO] Finished at: 2021-03-11T02:40:39Z                                        
                                                                                
                                                  
[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 /home/ambari/ambari/ambari-server/checkstyle.xml ruleset. -> [Help 1]      
                                                                                
                                                  
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on 
project ambari-server: Failed during checkstyle executi
on  
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to