guluo created AMBARI-26224:
------------------------------

             Summary: Wrong order of imports for WidgetResourceProvider.java
                 Key: AMBARI-26224
                 URL: https://issues.apache.org/jira/browse/AMBARI-26224
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: guluo


when we compile Ambari using the following command, an error occurs:  Wrong 
order for 'com.google.gson.JsonElement' import.

mvn clean install rpm:rpm -DskipTests -Drat.skip=true


The reason:

we have specified the import order in checkstyle.xml file. if it does not match 
the order of imports in the file, the compilation will fail.

```
<!-- checkstyle.xml -->
<module name="ImportOrder">
  <property name="groups" value="java,javax,org,com,*"/>
  <property name="ordered" value="true"/>
  <property name="separated" value="true"/>
  <property name="option" value="top"/> <!-- static imports -->
  <property name="sortStaticImportsAlphabetically" value="true"/>
</module>
```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to