Maven compilation exception
Failed to execute goal org.apache.maven.plugins:
maven-pmd-plugin:3.8:check (default)
on project xxx: You have 133 PMD violations.
Reason: PMD verification is added to Maven to judge whether your code complies with the specification. If it does not comply with the specification, an error will be reported when Maven compiles
Solution: how can this specification be removed? Just execute the following command, which can ignore the PMD check
mvn clean install -Dpmd.skip=true -Dcheckstyle.skip=true
Of course, when Maven compiles, there will be unit test execution, so how to ignore unit test execution?Just execute the following command
mvn clean install -Dmaven.test.skip=true
Therefore, as long as you want to ignore it, you can execute a command directly behind it
in a word:
In order to be compatible with errors, the following methods can be performed:
mvn clean install -Dpmd.skip=true -Dcheckstyle.skip=true -Dmaven.test.skip=true
Read More:
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- Maven (http://repo1.maven.org/maven2/): Failed to transfer file and PKIX path building failed: sun.secu
- [Solved] O2oa compile error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- MVN compile Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin…
- [Solved] Maven Publish Error: Failed to execute goal org.apache.maven.pluginsmaven-deploy-plugin2.8.2deploy
- [Solved] Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on
- [Solved] org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject…
- IDEA Maven Fail to Download Dependencies Error: ERROR – #org.jetbrains.idea.maven – Cannot reconnect.
- Maven plugin development report error- plugin:3.2 :descriptor fai
- IDEA Create maven project error: Error running‘[org.apache.maven.pluginsmaven-archetype-pluginRELEASE
- [Solved] IDEA Maven Error: Cannot resolve xxx & Maven Dependencies Error
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- How to Solve Spring Boot Maven Build Error
- maven.TestGenerateMojo.execute(TestGenerateMojo.java:65) [How to Solve]
- How to Solve Errors encountered by maven
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid