Audit errors as below, when try to run
>mvn clean install`my cucumber java项目。一切都很顺利这是突然发生的。
所有的错误似乎都与编码有关。但是当我构建并运行测试时
IntelliJ 2019.3 Ultimate
[INFO] Starting audit...
[ERROR] C:\Repo\....\cucumber\stepdefinition\CommonStepdefs.java:4: 'cucumber.api.java.en.Given' should be separated from previous imports. [ImportOrder]
[ERROR] C:\Repo\...\cucumber\stepdefinition\CommonStepdefs.java:7: Wrong order for 'common.Utilities' import. [ImportOrder]
[ERROR] C:\Repo\...\src\test\java\common\Utilities.java:27: Line is longer than 120 characters (found 146). [LineLength]
[ERROR] C:\Repo\...\src\test\java\common\Utilities.java:46: Line is longer than 120 characters (found 153). [LineLength]
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.344 s
[INFO] Finished at: 2020-02-01T10:27:53+11:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.13:check (validate) on project automation: Failed during checkstyle execution: There are 48 checkstyle errors. -> [Help 1]
Maven配置:
Maven home: C:\apache-maven-3.6.2\bin\..
Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_231\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"