[ https://issues.apache.org/jira/browse/AMBARI-26224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
guluo resolved AMBARI-26224. ---------------------------- Resolution: Duplicate > 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 > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > 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: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org