How to run certain phases and validations
Roman Ivanov edited this page Dec 5, 2023
·
18 revisions
If your locale if not English, before any phase that executes checkstyle junit test, run in terminal:
export LC_ALL=en_US.utf8
mvn clean verify
use existing/installed on your local "en" locale, to get all installed locales use locale -a
export LC_ALL=en_US.utf8
mvn clean verify
mvn clean package -Passembly
mvn clean site -Pno-validations
Report location will be target/site/index.html
mvn clean test-compile pmd:check
Report will printed in terminal output
mvn clean test-compile spotbugs:check
Report will printed in terminal output
mvn clean compile antrun:run@ant-phase-verify
mvn clean compile test-compile forbiddenapis:testCheck@forbiddenapis-test
mvn clean test -Dtest=XdocsPagesTest,XdocsJavaDocsTest
mvn clean test -Dtest=CheckerTest#testDestroy
Generate HTML report (ATTENTION: "clean" is required to avoid strange reports !!! always do it!):
mvn -e clean test jacoco:restore-instrumented-classes jacoco:report@default-report
Report location will be target/site/jacoco/index.html
mvn clean compile checkstyle:check@sevntu-checkstyle-check
Set LC_ALL=en_US.utf8
in "Environment variables" of test execution config.