Open charnet1019 opened 4 years ago
编译报错
我也出现了相同问题
maven.test.skip=true
编译错误,设置了 maven.test.skip=true
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] SonarQube PMD Project [pom] [INFO] SonarQube PMD Plugin [sonar-plugin] [INFO] SonarQube PMD Plugin Integration Test [sonar-plugin] [INFO] [INFO] -------------------< org.sonarsource.pmd:sonar-pmd >-------------------- [INFO] Building SonarQube PMD Project 3.2.1 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ sonar-pmd --- [INFO] Deleting /Users/leo/Client/sonar-pmd-p3c/target [INFO] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ sonar-pmd --- [INFO] Executing: /bin/sh -c cd '/Users/leo/Client/sonar-pmd-p3c' && 'git' 'rev-parse' '--verify' 'HEAD' [INFO] Working directory: /Users/leo/Client/sonar-pmd-p3c [INFO] Storing buildNumber: 9dcbc7ada1e493e61e0f1cca227cd2752f05cd64 at timestamp: 1656917769491 [INFO] Storing buildScmBranch: master [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce) @ sonar-pmd --- [INFO] [INFO] --- license-maven-plugin:3.0:check (enforce-license-headers) @ sonar-pmd --- [INFO] Checking licenses... [INFO] [INFO] --- beanshell-maven-plugin:1.4:run (compute-artifact-display-version) @ sonar-pmd --- [INFO] Executing Script [INFO] file class java.lang.Object [INFO] script class java.lang.String [INFO] evaluating script if (! "3.2.1".endsWith("-SNAPSHOT")) { [+ 14 omitted line(s)] [INFO] [INFO] --- maven-javadoc-plugin:3.1.0:jar (attach-javadocs) @ sonar-pmd --- [INFO] [INFO] --- maven-failsafe-plugin:2.22.1:integration-test (default) @ sonar-pmd --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.1:verify (default) @ sonar-pmd --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ sonar-pmd --- [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sonar-pmd --- [INFO] Installing /Users/leo/Client/sonar-pmd-p3c/pom.xml to /Users/leo/.m2/repository/org/sonarsource/pmd/sonar-pmd/3.2.1/sonar-pmd-3.2.1.pom [INFO] [INFO] ----------------< org.sonarsource.pmd:sonar-pmd-plugin >---------------- [INFO] Building SonarQube PMD Plugin 3.2.1 [2/3] [INFO] ----------------------------[ sonar-plugin ]---------------------------- Downloading from maven-default-http-blocker: http://0.0.0.0/org/codehaus/woodstox/stax2-api/maven-metadata.xml [WARNING] Could not transfer metadata org.codehaus.woodstox:stax2-api/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/codehaus/woodstox/stax2-api/maven-metadata.xml [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ sonar-pmd-plugin --- [INFO] Deleting /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target [INFO] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ sonar-pmd-plugin --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce) @ sonar-pmd-plugin --- [WARNING] org.codehaus.woodstox:stax2-api/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.woodstox:stax2-api/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/codehaus/woodstox/stax2-api/maven-metadata.xml [INFO] [INFO] --- license-maven-plugin:3.0:check (enforce-license-headers) @ sonar-pmd-plugin --- [INFO] Checking licenses... [INFO] [INFO] --- sonar-packaging-maven-plugin:1.18.0.372:check (default-check) @ sonar-pmd-plugin --- [INFO] [INFO] --- beanshell-maven-plugin:1.4:run (compute-artifact-display-version) @ sonar-pmd-plugin --- [INFO] Executing Script [INFO] file class java.lang.Object [INFO] script class java.lang.String [INFO] evaluating script if (! "3.2.1".endsWith("-SNAPSHOT")) { [+ 14 omitted line(s)] [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ sonar-pmd-plugin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 347 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ sonar-pmd-plugin --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target/classes [INFO] /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdViolationRecorder.java: 某些输入文件使用或覆盖了已过时的 API。 [INFO] /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdViolationRecorder.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ sonar-pmd-plugin --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ sonar-pmd-plugin --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ sonar-pmd-plugin --- [INFO] Tests are skipped. [INFO] [INFO] --- sonar-packaging-maven-plugin:1.18.0.372:sonar-plugin (default-sonar-plugin) @ sonar-pmd-plugin --- [INFO] ------------------------------------------------------- [INFO] Plugin definition in update center [INFO] Key: pmd [INFO] Name: PMD [INFO] Description: Analyze Java code with PMD. [INFO] Version: 3.2.1 [INFO] Display Version: 3.2.1 [INFO] Entry-point Class: org.sonar.plugins.pmd.PmdPlugin [INFO] Required Plugins: java:4.15.0.12310 [INFO] Does the plugin support SonarLint?: false [INFO] Use Child-first ClassLoader: false [INFO] Base Plugin: [INFO] Homepage URL: https://github.com/jensgerdes/sonar-pmd [INFO] Minimal SonarQube Version: 6.6 [INFO] Licensing: GNU LGPL 3 [INFO] Organization: [INFO] Organization URL: [INFO] Terms and Conditions: [INFO] Issue Tracker URL: https://github.com/jensgerdes/sonar-pmd/issues [INFO] Build date: 2022-07-04T14:56:14+0800 [INFO] Sources URL: https://github.com/jensgerdes/sonar-pmd/sonar-pmd-plugin [INFO] Developers: Jens Gerdes,Tim Webster,Evgeny Mandrikov [INFO] Dependencies: META-INF/lib/jdom-1.0.jar META-INF/lib/p3c-pmd-2.1.0.jar META-INF/lib/javacc-5.0.jar META-INF/lib/javax.annotation-api-1.3.2.jar META-INF/lib/sslr-squid-bridge-2.7.0.377.jar META-INF/lib/commons-lang3-3.8.1.jar META-INF/lib/pmd-java-6.15.0.jar META-INF/lib/pmd-core-6.15.0.jar META-INF/lib/asm-7.1.jar META-INF/lib/saxon-9.1.0.8-dom.jar META-INF/lib/guava-19.0.jar META-INF/lib/gson-2.8.5.jar META-INF/lib/pmd-vm-6.15.0.jar META-INF/lib/saxon-9.1.0.8.jar META-INF/lib/kotlin-stdlib-common-1.3.72.jar META-INF/lib/kotlin-stdlib-1.3.72.jar META-INF/lib/commons-io-2.6.jar META-INF/lib/kotlin-stdlib-jdk8-1.3.72.jar META-INF/lib/kotlin-stdlib-jdk7-1.3.72.jar META-INF/lib/annotations-13.0.jar [INFO] ------------------------------------------------------- [INFO] Building jar: /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target/sonar-pmd-plugin-3.2.1.jar [INFO] already added, skipping [INFO] [INFO] --- maven-javadoc-plugin:3.1.0:jar (attach-javadocs) @ sonar-pmd-plugin --- [INFO] Building jar: /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target/sonar-pmd-plugin-3.2.1-javadoc.jar [INFO] [INFO] --- maven-failsafe-plugin:2.22.1:integration-test (default) @ sonar-pmd-plugin --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-plugin-size) @ sonar-pmd-plugin --- [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireFilesSize failed with message: /Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target/sonar-pmd-plugin-3.2.1.jar size (9206873) too large. Max. is 8000000/Users/leo/Client/sonar-pmd-p3c/sonar-pmd-plugin/target/sonar-pmd-plugin-3.2.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SonarQube PMD Project 3.2.1:
[INFO]
[INFO] SonarQube PMD Project .............................. SUCCESS [ 1.748 s]
[INFO] SonarQube PMD Plugin ............................... FAILURE [ 8.109 s]
[INFO] SonarQube PMD Plugin Integration Test .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.366 s
[INFO] Finished at: 2022-07-04T14:56:18+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-plugin-size) on project sonar-pmd-plugin: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
把sonar-pmd-plugin模块中的pom.xml文件上的这段代码删掉就不会报错
`
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-plugin-size</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>verify</phase>
<configuration>
<rules>
<requireFilesSize>
<maxsize>8000000</maxsize>
<minsize>4200000</minsize>
<files>
<file>${project.build.directory}/${project.build.finalName}.jar</file>
</files>
</requireFilesSize>
</rules>
</configuration>
</execution>
</executions>
`
make it bigger 8000000 --> 10000000
[root@mysql01 sonar-pmd-p3c]# mvn clean package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] SonarQube PMD Project [pom] [INFO] SonarQube PMD Plugin [sonar-plugin] [INFO] SonarQube PMD Plugin Integration Test [sonar-plugin] [INFO] [INFO] -------------------< org.sonarsource.pmd:sonar-pmd >-------------------- [INFO] Building SonarQube PMD Project 3.2.1 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ sonar-pmd --- [INFO] Deleting /home/sonar-pmd-p3c/target [INFO] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ sonar-pmd --- [INFO] Executing: /bin/sh -c cd '/home/sonar-pmd-p3c' && 'git' 'rev-parse' '--verify' 'HEAD' [INFO] Working directory: /home/sonar-pmd-p3c [INFO] Storing buildNumber: 9dcbc7ada1e493e61e0f1cca227cd2752f05cd64 at timestamp: 1604110676049 [INFO] Storing buildScmBranch: master [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce) @ sonar-pmd --- [INFO] [INFO] --- license-maven-plugin:3.0:check (enforce-license-headers) @ sonar-pmd --- [INFO] Checking licenses... [INFO] [INFO] --- beanshell-maven-plugin:1.4:run (compute-artifact-display-version) @ sonar-pmd --- [INFO] Executing Script [INFO] file class java.lang.Object [INFO] script class java.lang.String [INFO] evaluating script if (! "3.2.1".endsWith("-SNAPSHOT")) { [+ 14 omitted line(s)] [INFO] [INFO] --- maven-javadoc-plugin:3.1.0:jar (attach-javadocs) @ sonar-pmd --- [INFO] [INFO] ----------------< org.sonarsource.pmd:sonar-pmd-plugin >---------------- [INFO] Building SonarQube PMD Plugin 3.2.1 [2/3] [INFO] ----------------------------[ sonar-plugin ]---------------------------- Downloading from maven: http://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/maven-metadata.xml [WARNING] Could not transfer metadata org.codehaus.woodstox:stax2-api/maven-metadata.xml from/to maven (http://repo1.maven.org/maven2): Transfer failed for http://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/maven-metadata.xml 501 HTTPS Required [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ sonar-pmd-plugin --- [INFO] Deleting /home/sonar-pmd-p3c/sonar-pmd-plugin/target [INFO] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ sonar-pmd-plugin --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce) @ sonar-pmd-plugin --- [WARNING] Failure to transfer org.codehaus.woodstox:stax2-api/maven-metadata.xml from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.woodstox:stax2-api/maven-metadata.xml from/to maven (http://repo1.maven.org/maven2): Transfer failed for http://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/maven-metadata.xml 501 HTTPS Required [INFO] [INFO] --- license-maven-plugin:3.0:check (enforce-license-headers) @ sonar-pmd-plugin --- [INFO] Checking licenses... [INFO] [INFO] --- sonar-packaging-maven-plugin:1.18.0.372:check (default-check) @ sonar-pmd-plugin --- [INFO] [INFO] --- beanshell-maven-plugin:1.4:run (compute-artifact-display-version) @ sonar-pmd-plugin --- [INFO] Executing Script [INFO] file class java.lang.Object [INFO] script class java.lang.String [INFO] evaluating script if (! "3.2.1".endsWith("-SNAPSHOT")) { [+ 14 omitted line(s)] [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ sonar-pmd-plugin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 347 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ sonar-pmd-plugin --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /home/sonar-pmd-p3c/sonar-pmd-plugin/target/classes [INFO] /home/sonar-pmd-p3c/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdExecutor.java: Some input files use or override a deprecated API. [INFO] /home/sonar-pmd-p3c/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdExecutor.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ sonar-pmd-plugin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 9 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ sonar-pmd-plugin --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 16 source files to /home/sonar-pmd-p3c/sonar-pmd-plugin/target/test-classes [INFO] /home/sonar-pmd-p3c/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdLevelUtilsTest.java: Some input files use or override a deprecated API. [INFO] /home/sonar-pmd-p3c/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdLevelUtilsTest.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ sonar-pmd-plugin --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.sonar.plugins.pmd.PmdPluginTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.124 s - in org.sonar.plugins.pmd.PmdPluginTest [INFO] Running org.sonar.plugins.pmd.PmdConstantsTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.sonar.plugins.pmd.PmdConstantsTest [INFO] Running org.sonar.plugins.pmd.PmdConfigurationTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.572 s - in org.sonar.plugins.pmd.PmdConfigurationTest [INFO] Running org.sonar.plugins.pmd.PmdViolationRecorderTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.574 s - in org.sonar.plugins.pmd.PmdViolationRecorderTest [INFO] Running org.sonar.plugins.pmd.PmdSensorTest [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.288 s - in org.sonar.plugins.pmd.PmdSensorTest [INFO] Running org.sonar.plugins.pmd.rule.ExternalDescriptionLoaderTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.067 s - in org.sonar.plugins.pmd.rule.ExternalDescriptionLoaderTest [INFO] Running org.sonar.plugins.pmd.PmdTemplateTest [INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.902 s - in org.sonar.plugins.pmd.PmdTemplateTest [INFO] Running org.sonar.plugins.pmd.PmdUnitTestsRulesDefinitionTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.171 s - in org.sonar.plugins.pmd.PmdUnitTestsRulesDefinitionTest [INFO] Running org.sonar.plugins.pmd.PmdRulesDefinitionTest [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.901 s <<< FAILURE! - in org.sonar.plugins.pmd.PmdRulesDefinitionTest [ERROR] test Time elapsed: 0.219 s <<< FAILURE! java.lang.AssertionError:
Expected size:<321> but was:<324> in: <[[repository=pmd, key=AvoidLosingExceptionInformation], [repository=pmd, key=UnsynchronizedStaticDateFormatter], [repository=pmd, key=NeedBraceRule], [repository=pmd, key=AvoidStartWithDollarAndUnderLineNamingRule], [repository=pmd, key=MDBAndSessionBeanNamingConvention], [repository=pmd, key=AvoidCommentBehindStatementRule], [repository=pmd, key=DoubleCheckedLocking], [repository=pmd, key=AvoidCallStaticSimpleDateFormatRule], [repository=pmd, key=RemoteSessionInterfaceNamingConvention], [repository=pmd, key=AvoidProtectedMethodInFinalClassNotExtending], [repository=pmd, key=UseObjectForClearerAPI], [repository=pmd, key=ForLoopShouldBeWhileLoop], [repository=pmd, key=AvoidThrowingRawExceptionTypes], [repository=pmd, key=PackageNamingRule], [repository=pmd, key=StringConcatRule], [repository=pmd, key=BeanMembersShouldSerialize], [repository=pmd, key=AvoidDollarSigns], [repository=pmd, key=MethodReturnWrapperTypeRule], [repository=pmd, key=UndefineMagicConstantRule], [repository=pmd, key=EmptyIfStmt], [repository=pmd, key=UselessOverridingMethod], [repository=pmd, key=DoNotCallSystemExit], [repository=pmd, key=MissingStaticMethodInNonInstantiatableClass], [repository=pmd, key=ReplaceHashtableWithMap], [repository=pmd, key=ExcessiveClassLength], [repository=pmd, key=ShortVariable], [repository=pmd, key=ByteInstantiation], [repository=pmd, key=MoreThanOneLogger], [repository=pmd, key=IbatisMethodQueryForListRule], [repository=pmd, key=EmptyWhileStmt], [repository=pmd, key=AvoidLiteralsInIfCondition], [repository=pmd, key=UseStringBufferLength], [repository=pmd, key=BadComparison], [repository=pmd, key=AvoidMultipleUnaryOperators], [repository=pmd, key=UnusedPrivateField], [repository=pmd, key=CommentSize], [repository=pmd, key=SwitchDensity], [repository=pmd, key=EmptyFinalizer], [repository=pmd, key=TestClassShouldEndWithTestNamingRule], [repository=pmd, key=PojoMustUsePrimitiveFieldRule], [repository=pmd, key=CheckSkipResult], [repository=pmd, key=CallSuperFirst], [repository=pmd, key=UseLocaleWithCaseConversions], [repository=pmd, key=StaticEJBFieldShouldBeFinal], [repository=pmd, key=NPathComplexity], [repository=pmd, key=AvoidFieldNameMatchingTypeName], [repository=pmd, key=JumbledIncrementer], [repository=pmd, key=AvoidConcurrentCompetitionRandomRule], [repository=pmd, key=RemoteInterfaceNamingConvention], [repository=pmd, key=IntegerInstantiation], [repository=pmd, key=CollectionInitShouldAssignCapacityRule], [repository=pmd, key=AbstractClassShouldStartWithAbstractNamingRule], [repository=pmd, key=StringBufferInstantiationWithChar], [repository=pmd, key=AvoidInstantiatingObjectsInLoops], [repository=pmd, key=ClassWithOnlyPrivateConstructorsShouldBeFinal], [repository=pmd, key=LockShouldWithTryFinallyRule], [repository=pmd, key=AvoidUsingHardCodedIP], [repository=pmd, key=DontUseFloatTypeForLoopIndices], [repository=pmd, key=ConstructorCallsOverridableMethod], [repository=pmd, key=LocalInterfaceSessionNamingConvention], [repository=pmd, key=DontImportJavaLang], [repository=pmd, key=UnusedModifier], [repository=pmd, key=UselessParentheses], [repository=pmd, key=GuardDebugLogging], [repository=pmd, key=UseCorrectExceptionLogging], [repository=pmd, key=AvoidAssertAsIdentifier], [repository=pmd, key=InstantiationToGetClass], [repository=pmd, key=AvoidBranchingStatementAsLastInLoop], [repository=pmd, key=ClassCastExceptionWithToArrayRule], [repository=pmd, key=StringInstantiation], [repository=pmd, key=FinalizeOnlyCallsSuperFinalize], [repository=pmd, key=ProperLogger], [repository=pmd, key=ExceptionClassShouldEndWithExceptionRule], [repository=pmd, key=NcssConstructorCount], [repository=pmd, key=LawOfDemeter], [repository=pmd, key=UseStringBufferForStringAppends], [repository=pmd, key=ForLoopsMustUseBraces], [repository=pmd, key=OverrideBothEqualsAndHashcode], [repository=pmd, key=ShortInstantiation], [repository=pmd, key=SuspiciousOctalEscape], [repository=pmd, key=EmptyInitializer], [repository=pmd, key=DoNotThrowExceptionInFinally], [repository=pmd, key=CallSuperInConstructor], [repository=pmd, key=UnnecessaryWrapperObjectCreation], [repository=pmd, key=DontModifyInForeachCircleRule], [repository=pmd, key=LocalHomeNamingConvention], [repository=pmd, key=SystemPrintln], [repository=pmd, key=SignatureDeclareThrowsException], [repository=pmd, key=AvoidCatchingGenericException], [repository=pmd, key=VariableNamingConventions], [repository=pmd, key=BrokenNullCheck], [repository=pmd, key=AssignmentToNonFinalStatic], [repository=pmd, key=ReplaceVectorWithList], [repository=pmd, key=ExcessiveImports], [repository=pmd, key=UselessQualifiedThis], [repository=pmd, key=CallSuperLast], [repository=pmd, key=AvoidInstanceofChecksInCatchClause], [repository=pmd, key=CommentDefaultAccessModifier], [repository=pmd, key=PrematureDeclaration], [repository=pmd, key=DataflowAnomalyAnalysis], [repository=pmd, key=AbstractClassWithoutAnyMethod], [repository=pmd, key=OptimizableToArrayCall], [repository=pmd, key=UnusedNullCheckInEquals], [repository=pmd, key=MethodArgumentCouldBeFinal], [repository=pmd, key=PojoMustOverrideToStringRule], [repository=pmd, key=UncommentedEmptyMethodBody], [repository=pmd, key=TransactionMustHaveRollbackRule], [repository=pmd, key=UseConcurrentHashMap], [repository=pmd, key=ClassCastExceptionWithToArray], [repository=pmd, key=OnlyOneReturn], [repository=pmd, key=UnnecessaryCaseChange], [repository=pmd, key=EmptyMethodInAbstractClassShouldBeAbstract], [repository=pmd, key=ImmutableField], [repository=pmd, key=SimplifyStartsWith], [repository=pmd, key=StdCyclomaticComplexity], [repository=pmd, key=AvoidReturnInFinallyRule], [repository=pmd, key=EmptyCatchBlock], [repository=pmd, key=UseUtilityClass], [repository=pmd, key=UseEqualsToCompareStrings], [repository=pmd, key=ThreadShouldSetNameRule], [repository=pmd, key=ArrayNamingShouldHaveBracketRule], [repository=pmd, key=DoNotExtendJavaLangError], [repository=pmd, key=InefficientEmptyStringCheck], [repository=pmd, key=AvoidThreadGroup], [repository=pmd, key=AppendCharacterWithChar], [repository=pmd, key=RemoveCommentedCodeRule], [repository=pmd, key=AvoidNegationOperatorRule], [repository=pmd, key=LongInstantiation], [repository=pmd, key=NcssTypeCount], [repository=pmd, key=ThreadLocalShouldRemoveRule], [repository=pmd, key=AvoidCatchingNPE], [repository=pmd, key=AvoidCallingFinalize], [repository=pmd, key=AvoidFinalLocalVariable], [repository=pmd, key=CollapsibleIfStatements], [repository=pmd, key=AvoidDeeplyNestedIfStmts], [repository=pmd, key=UnusedLocalVariable], [repository=pmd, key=UselessOperationOnImmutable], [repository=pmd, key=LooseCoupling], [repository=pmd, key=FinalFieldCouldBeStatic], [repository=pmd, key=SimplifyConditional], [repository=pmd, key=MissingSerialVersionUID], [repository=pmd, key=SuspiciousHashcodeMethodName], [repository=pmd, key=GuardLogStatement], [repository=pmd, key=UnusedImports], [repository=pmd, key=PreserveStackTrace], [repository=pmd, key=SwitchStmtsShouldHaveDefault], [repository=pmd, key=AvoidThrowingNewInstanceOfSameException], [repository=pmd, key=DontImportSun], [repository=pmd, key=LoggerIsNotStaticFinal], [repository=pmd, key=UnusedImportsWithTypeResolution], [repository=pmd, key=ReturnEmptyArrayRatherThanNull], [repository=pmd, key=BooleanInstantiation], [repository=pmd, key=NonThreadSafeSingleton], [repository=pmd, key=AvoidUsingNativeCode], [repository=pmd, key=AvoidArrayLoops], [repository=pmd, key=DoNotCallGarbageCollectionExplicitly], [repository=pmd, key=ExcessiveMethodLength], [repository=pmd, key=AvoidComplexConditionRule], [repository=pmd, key=UseNotifyAllInsteadOfNotify], [repository=pmd, key=ConsecutiveLiteralAppends], [repository=pmd, key=IdempotentOperations], [repository=pmd, key=SingletonClassReturningNewInstance], [repository=pmd, key=GenericsNaming], [repository=pmd, key=MethodWithSameNameAsEnclosingClass], [repository=pmd, key=SimplifyBooleanReturns], [repository=pmd, key=SingleMethodSingleton], [repository=pmd, key=EmptyStatementNotInLoop], [repository=pmd, key=LooseCouplingWithTypeResolution], [repository=pmd, key=LogicInversion], [repository=pmd, key=GuardLogStatementJavaUtil], [repository=pmd, key=MissingBreakInSwitch], [repository=pmd, key=ArrayIsStoredDirectly], [repository=pmd, key=SignatureDeclareThrowsExceptionWithTypeResolution], [repository=pmd, key=AbstractNaming], [repository=pmd, key=AvoidStringBufferField], [repository=pmd, key=ClassNamingShouldBeCamelRule], [repository=pmd, key=UselessStringValueOf], [repository=pmd, key=CommentContent], [repository=pmd, key=ProperCloneImplementation], [repository=pmd, key=ShortClassName], [repository=pmd, key=AtLeastOneConstructor], [repository=pmd, key=AvoidCatchingThrowable], [repository=pmd, key=ShortMethodName], [repository=pmd, key=NullAssignment], [repository=pmd, key=EmptyFinallyBlock], [repository=pmd, key=LoosePackageCoupling], [repository=pmd, key=FinalizeOverloaded], [repository=pmd, key=PositionLiteralsFirstInCaseInsensitiveComparisons], [repository=pmd, key=ClassMustHaveAuthorRule], [repository=pmd, key=FieldDeclarationsShouldBeAtStartOfClass], [repository=pmd, key=AvoidUsingShortType], [repository=pmd, key=MisplacedNullCheck], [repository=pmd, key=UnnecessaryConstructor], [repository=pmd, key=DoNotUseThreads], [repository=pmd, key=CountDownShouldInFinallyRule], [repository=pmd, key=AvoidAccessibilityAlteration], [repository=pmd, key=ClassNamingConventions], [repository=pmd, key=ConcurrentExceptionWithModifyOriginSubListRule], [repository=pmd, key=ImportFromSamePackage], [repository=pmd, key=UnconditionalIfStatement], [repository=pmd, key=UnnecessaryConversionTemporary], [repository=pmd, key=EnumConstantsMustHaveCommentRule], [repository=pmd, key=PositionLiteralsFirstInComparisons], [repository=pmd, key=ReturnFromFinallyBlock], [repository=pmd, key=CommentsMustBeJavadocFormatRule], [repository=pmd, key=SimpleDateFormatNeedsLocale], [repository=pmd, key=LocalVariableCouldBeFinal], [repository=pmd, key=DefaultLabelNotLastInSwitchStmt], [repository=pmd, key=AbstractMethodOrInterfaceMethodMustUseJavadocRule], [repository=pmd, key=SingularField], [repository=pmd, key=AvoidPrintStackTrace], [repository=pmd, key=UseIndexOfChar], [repository=pmd, key=AvoidNewDateGetTimeRule], [repository=pmd, key=UseCollectionIsEmpty], [repository=pmd, key=MethodReturnsInternalArray], [repository=pmd, key=FinalizeShouldBeProtected], [repository=pmd, key=AvoidDecimalLiteralsInBigDecimalConstructor], [repository=pmd, key=IfElseStmtsMustUseBraces], [repository=pmd, key=TooManyMethods], [repository=pmd, key=DefaultPackage], [repository=pmd, key=WhileLoopsMustUseBraces], [repository=pmd, key=AvoidPrefixingMethodParameters], [repository=pmd, key=BigDecimalAvoidDoubleConstructorRule], [repository=pmd, key=AvoidThrowingNullPointerException], [repository=pmd, key=AvoidUsingVolatile], [repository=pmd, key=SimplifiedTernary], [repository=pmd, key=AssignmentInOperand], [repository=pmd, key=UseVarargs], [repository=pmd, key=DoNotHardCodeSDCard], [repository=pmd, key=DuplicateImports], [repository=pmd, key=NonCaseLabelInSwitchStatement], [repository=pmd, key=CouplingBetweenObjects], [repository=pmd, key=ExcessiveParameterList], [repository=pmd, key=CloneMethodMustImplementCloneableWithTypeResolution], [repository=pmd, key=PojoNoDefaultValueRule], [repository=pmd, key=UnnecessaryParentheses], [repository=pmd, key=LongVariable], [repository=pmd, key=ServiceOrDaoClassShouldEndWithImplRule], [repository=pmd, key=SuspiciousConstantFieldName], [repository=pmd, key=AvoidUsingOctalValues], [repository=pmd, key=MethodTooLongRule], [repository=pmd, key=ThreadPoolCreationRule], [repository=pmd, key=ClassCastExceptionWithSubListToArrayListRule], [repository=pmd, key=AvoidProtectedFieldInFinalClass], [repository=pmd, key=ReplaceEnumerationWithIterator], [repository=pmd, key=NonStaticInitializer], [repository=pmd, key=InefficientStringBuffering], [repository=pmd, key=SuspiciousEqualsMethodName], [repository=pmd, key=ExtendsObject], [repository=pmd, key=AvoidMissUseOfMathRandomRule], [repository=pmd, key=AccessorClassGeneration], [repository=pmd, key=TooManyFields], [repository=pmd, key=CheckResultSet], [repository=pmd, key=EmptyTryBlock], [repository=pmd, key=StringToString], [repository=pmd, key=AvoidSynchronizedAtMethodLevel], [repository=pmd, key=UnnecessaryReturn], [repository=pmd, key=NcssMethodCount], [repository=pmd, key=BooleanGetMethodName], [repository=pmd, key=SimplifyBooleanExpressions], [repository=pmd, key=CyclomaticComplexity], [repository=pmd, key=TooFewBranchesForASwitchStatement], [repository=pmd, key=UnusedPrivateMethod], [repository=pmd, key=AvoidPatternCompileInMethodRule], [repository=pmd, key=AddEmptyString], [repository=pmd, key=ModifiedCyclomaticComplexity], [repository=pmd, key=EmptyStaticInitializer], [repository=pmd, key=BigIntegerInstantiation], [repository=pmd, key=UseRightCaseForDateFormatRule], [repository=pmd, key=CloneMethodMustImplementCloneable], [repository=pmd, key=GodClass], [repository=pmd, key=ExceptionAsFlowControl], [repository=pmd, key=MethodNamingConventions], [repository=pmd, key=MisleadingVariableName], [repository=pmd, key=SwitchStatementRule], [repository=pmd, key=WrapperTypeEqualityRule], [repository=pmd, key=RedundantFieldInitializer], [repository=pmd, key=DontCallThreadRun], [repository=pmd, key=CloneMethodMustBePublic], [repository=pmd, key=UpperEllRule], [repository=pmd, key=UseProperClassLoader], [repository=pmd, key=UnnecessaryFinalModifier], [repository=pmd, key=NoPackage], [repository=pmd, key=AbstractClassWithoutAbstractMethod], [repository=pmd, key=UncommentedEmptyConstructor], [repository=pmd, key=InsufficientStringBufferDeclaration], [repository=pmd, key=CommentRequired], [repository=pmd, key=LowerCamelCaseVariableNamingRule], [repository=pmd, key=ConfusingTernary], [repository=pmd, key=EmptySwitchStatements], [repository=pmd, key=XPathRule], [repository=pmd, key=AvoidDuplicateLiterals], [repository=pmd, key=ConstantFieldShouldBeUpperCaseRule], [repository=pmd, key=AvoidRethrowingException], [repository=pmd, key=AvoidConstantsInterface], [repository=pmd, key=AvoidApacheBeanUtilsCopyRule], [repository=pmd, key=AvoidManuallyCreateThreadRule], [repository=pmd, key=UnusedFormalParameter], [repository=pmd, key=CloneMethodReturnTypeMustMatchClassName], [repository=pmd, key=UseArraysAsList], [repository=pmd, key=EqualsAvoidNullRule], [repository=pmd, key=ConsecutiveAppendsShouldReuse], [repository=pmd, key=CompareObjectsWithEquals], [repository=pmd, key=AvoidDoubleOrFloatEqualCompareRule], [repository=pmd, key=EmptySynchronizedBlock], [repository=pmd, key=AvoidEnumAsIdentifier], [repository=pmd, key=CloneThrowsCloneNotSupportedException], [repository=pmd, key=EmptyStatementBlock], [repository=pmd, key=TooManyStaticImports], [repository=pmd, key=BooleanPropertyShouldNotStartWithIsRule], [repository=pmd, key=UnnecessaryLocalBeforeReturn], [repository=pmd, key=UnnecessaryFullyQualifiedName], [repository=pmd, key=UseArrayListInsteadOfVector], [repository=pmd, key=EqualsNull], [repository=pmd, key=IfStmtsMustUseBraces], [repository=pmd, key=AvoidReassigningParameters], [repository=pmd, key=CloseResource], [repository=pmd, key=ExcessivePublicCount], [repository=pmd, key=AvoidFieldNameMatchingMethodName], [repository=pmd, key=OneDeclarationPerLine], [repository=pmd, key=FinalizeDoesNotCallSuperFinalize], [repository=pmd, key=PackageCase], [repository=pmd, key=AvoidUseTimerRule], [repository=pmd, key=UnsupportedExceptionWithModifyAsListRule]]> at org.sonar.plugins.pmd.PmdRulesDefinitionTest.test(PmdRulesDefinitionTest.java:48)
[INFO] Running org.sonar.plugins.pmd.profile.PmdProfileExporterTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.636 s - in org.sonar.plugins.pmd.profile.PmdProfileExporterTest [INFO] Running org.sonar.plugins.pmd.PmdExecutorTest [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.545 s - in org.sonar.plugins.pmd.PmdExecutorTest [INFO] Running org.sonar.plugins.pmd.TextRangeCalculatorTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 s - in org.sonar.plugins.pmd.TextRangeCalculatorTest [INFO] Running org.sonar.plugins.pmd.PmdLevelUtilsTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.sonar.plugins.pmd.PmdLevelUtilsTest [INFO] Running org.sonar.plugins.pmd.profile.PmdProfileImporterTest [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 s - in org.sonar.plugins.pmd.profile.PmdProfileImporterTest [INFO] Running org.sonar.plugins.pmd.xml.PmdRuleSetsTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 s - in org.sonar.plugins.pmd.xml.PmdRuleSetsTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] PmdRulesDefinitionTest.test:48 Expected size:<321> but was:<324> in: <[[repository=pmd, key=AvoidLosingExceptionInformation], [repository=pmd, key=UnsynchronizedStaticDateFormatter], [repository=pmd, key=NeedBraceRule], [repository=pmd, key=AvoidStartWithDollarAndUnderLineNamingRule], [repository=pmd, key=MDBAndSessionBeanNamingConvention], [repository=pmd, key=AvoidCommentBehindStatementRule], [repository=pmd, key=DoubleCheckedLocking], [repository=pmd, key=AvoidCallStaticSimpleDateFormatRule], [repository=pmd, key=RemoteSessionInterfaceNamingConvention], [repository=pmd, key=AvoidProtectedMethodInFinalClassNotExtending], [repository=pmd, key=UseObjectForClearerAPI], [repository=pmd, key=ForLoopShouldBeWhileLoop], [repository=pmd, key=AvoidThrowingRawExceptionTypes], [repository=pmd, key=PackageNamingRule], [repository=pmd, key=StringConcatRule], [repository=pmd, key=BeanMembersShouldSerialize], [repository=pmd, key=AvoidDollarSigns], [repository=pmd, key=MethodReturnWrapperTypeRule], [repository=pmd, key=UndefineMagicConstantRule], [repository=pmd, key=EmptyIfStmt], [repository=pmd, key=UselessOverridingMethod], [repository=pmd, key=DoNotCallSystemExit], [repository=pmd, key=MissingStaticMethodInNonInstantiatableClass], [repository=pmd, key=ReplaceHashtableWithMap], [repository=pmd, key=ExcessiveClassLength], [repository=pmd, key=ShortVariable], [repository=pmd, key=ByteInstantiation], [repository=pmd, key=MoreThanOneLogger], [repository=pmd, key=IbatisMethodQueryForListRule], [repository=pmd, key=EmptyWhileStmt], [repository=pmd, key=AvoidLiteralsInIfCondition], [repository=pmd, key=UseStringBufferLength], [repository=pmd, key=BadComparison], [repository=pmd, key=AvoidMultipleUnaryOperators], [repository=pmd, key=UnusedPrivateField], [repository=pmd, key=CommentSize], [repository=pmd, key=SwitchDensity], [repository=pmd, key=EmptyFinalizer], [repository=pmd, key=TestClassShouldEndWithTestNamingRule], [repository=pmd, key=PojoMustUsePrimitiveFieldRule], [repository=pmd, key=CheckSkipResult], [repository=pmd, key=CallSuperFirst], [repository=pmd, key=UseLocaleWithCaseConversions], [repository=pmd, key=StaticEJBFieldShouldBeFinal], [repository=pmd, key=NPathComplexity], [repository=pmd, key=AvoidFieldNameMatchingTypeName], [repository=pmd, key=JumbledIncrementer], [repository=pmd, key=AvoidConcurrentCompetitionRandomRule], [repository=pmd, key=RemoteInterfaceNamingConvention], [repository=pmd, key=IntegerInstantiation], [repository=pmd, key=CollectionInitShouldAssignCapacityRule], [repository=pmd, key=AbstractClassShouldStartWithAbstractNamingRule], [repository=pmd, key=StringBufferInstantiationWithChar], [repository=pmd, key=AvoidInstantiatingObjectsInLoops], [repository=pmd, key=ClassWithOnlyPrivateConstructorsShouldBeFinal], [repository=pmd, key=LockShouldWithTryFinallyRule], [repository=pmd, key=AvoidUsingHardCodedIP], [repository=pmd, key=DontUseFloatTypeForLoopIndices], [repository=pmd, key=ConstructorCallsOverridableMethod], [repository=pmd, key=LocalInterfaceSessionNamingConvention], [repository=pmd, key=DontImportJavaLang], [repository=pmd, key=UnusedModifier], [repository=pmd, key=UselessParentheses], [repository=pmd, key=GuardDebugLogging], [repository=pmd, key=UseCorrectExceptionLogging], [repository=pmd, key=AvoidAssertAsIdentifier], [repository=pmd, key=InstantiationToGetClass], [repository=pmd, key=AvoidBranchingStatementAsLastInLoop], [repository=pmd, key=ClassCastExceptionWithToArrayRule], [repository=pmd, key=StringInstantiation], [repository=pmd, key=FinalizeOnlyCallsSuperFinalize], [repository=pmd, key=ProperLogger], [repository=pmd, key=ExceptionClassShouldEndWithExceptionRule], [repository=pmd, key=NcssConstructorCount], [repository=pmd, key=LawOfDemeter], [repository=pmd, key=UseStringBufferForStringAppends], [repository=pmd, key=ForLoopsMustUseBraces], [repository=pmd, key=OverrideBothEqualsAndHashcode], [repository=pmd, key=ShortInstantiation], [repository=pmd, key=SuspiciousOctalEscape], [repository=pmd, key=EmptyInitializer], [repository=pmd, key=DoNotThrowExceptionInFinally], [repository=pmd, key=CallSuperInConstructor], [repository=pmd, key=UnnecessaryWrapperObjectCreation], [repository=pmd, key=DontModifyInForeachCircleRule], [repository=pmd, key=LocalHomeNamingConvention], [repository=pmd, key=SystemPrintln], [repository=pmd, key=SignatureDeclareThrowsException], [repository=pmd, key=AvoidCatchingGenericException], [repository=pmd, key=VariableNamingConventions], [repository=pmd, key=BrokenNullCheck], [repository=pmd, key=AssignmentToNonFinalStatic], [repository=pmd, key=ReplaceVectorWithList], [repository=pmd, key=ExcessiveImports], [repository=pmd, key=UselessQualifiedThis], [repository=pmd, key=CallSuperLast], [repository=pmd, key=AvoidInstanceofChecksInCatchClause], [repository=pmd, key=CommentDefaultAccessModifier], [repository=pmd, key=PrematureDeclaration], [repository=pmd, key=DataflowAnomalyAnalysis], [repository=pmd, key=AbstractClassWithoutAnyMethod], [repository=pmd, key=OptimizableToArrayCall], [repository=pmd, key=UnusedNullCheckInEquals], [repository=pmd, key=MethodArgumentCouldBeFinal], [repository=pmd, key=PojoMustOverrideToStringRule], [repository=pmd, key=UncommentedEmptyMethodBody], [repository=pmd, key=TransactionMustHaveRollbackRule], [repository=pmd, key=UseConcurrentHashMap], [repository=pmd, key=ClassCastExceptionWithToArray], [repository=pmd, key=OnlyOneReturn], [repository=pmd, key=UnnecessaryCaseChange], [repository=pmd, key=EmptyMethodInAbstractClassShouldBeAbstract], [repository=pmd, key=ImmutableField], [repository=pmd, key=SimplifyStartsWith], [repository=pmd, key=StdCyclomaticComplexity], [repository=pmd, key=AvoidReturnInFinallyRule], [repository=pmd, key=EmptyCatchBlock], [repository=pmd, key=UseUtilityClass], [repository=pmd, key=UseEqualsToCompareStrings], [repository=pmd, key=ThreadShouldSetNameRule], [repository=pmd, key=ArrayNamingShouldHaveBracketRule], [repository=pmd, key=DoNotExtendJavaLangError], [repository=pmd, key=InefficientEmptyStringCheck], [repository=pmd, key=AvoidThreadGroup], [repository=pmd, key=AppendCharacterWithChar], [repository=pmd, key=RemoveCommentedCodeRule], [repository=pmd, key=AvoidNegationOperatorRule], [repository=pmd, key=LongInstantiation], [repository=pmd, key=NcssTypeCount], [repository=pmd, key=ThreadLocalShouldRemoveRule], [repository=pmd, key=AvoidCatchingNPE], [repository=pmd, key=AvoidCallingFinalize], [repository=pmd, key=AvoidFinalLocalVariable], [repository=pmd, key=CollapsibleIfStatements], [repository=pmd, key=AvoidDeeplyNestedIfStmts], [repository=pmd, key=UnusedLocalVariable], [repository=pmd, key=UselessOperationOnImmutable], [repository=pmd, key=LooseCoupling], [repository=pmd, key=FinalFieldCouldBeStatic], [repository=pmd, key=SimplifyConditional], [repository=pmd, key=MissingSerialVersionUID], [repository=pmd, key=SuspiciousHashcodeMethodName], [repository=pmd, key=GuardLogStatement], [repository=pmd, key=UnusedImports], [repository=pmd, key=PreserveStackTrace], [repository=pmd, key=SwitchStmtsShouldHaveDefault], [repository=pmd, key=AvoidThrowingNewInstanceOfSameException], [repository=pmd, key=DontImportSun], [repository=pmd, key=LoggerIsNotStaticFinal], [repository=pmd, key=UnusedImportsWithTypeResolution], [repository=pmd, key=ReturnEmptyArrayRatherThanNull], [repository=pmd, key=BooleanInstantiation], [repository=pmd, key=NonThreadSafeSingleton], [repository=pmd, key=AvoidUsingNativeCode], [repository=pmd, key=AvoidArrayLoops], [repository=pmd, key=DoNotCallGarbageCollectionExplicitly], [repository=pmd, key=ExcessiveMethodLength], [repository=pmd, key=AvoidComplexConditionRule], [repository=pmd, key=UseNotifyAllInsteadOfNotify], [repository=pmd, key=ConsecutiveLiteralAppends], [repository=pmd, key=IdempotentOperations], [repository=pmd, key=SingletonClassReturningNewInstance], [repository=pmd, key=GenericsNaming], [repository=pmd, key=MethodWithSameNameAsEnclosingClass], [repository=pmd, key=SimplifyBooleanReturns], [repository=pmd, key=SingleMethodSingleton], [repository=pmd, key=EmptyStatementNotInLoop], [repository=pmd, key=LooseCouplingWithTypeResolution], [repository=pmd, key=LogicInversion], [repository=pmd, key=GuardLogStatementJavaUtil], [repository=pmd, key=MissingBreakInSwitch], [repository=pmd, key=ArrayIsStoredDirectly], [repository=pmd, key=SignatureDeclareThrowsExceptionWithTypeResolution], [repository=pmd, key=AbstractNaming], [repository=pmd, key=AvoidStringBufferField], [repository=pmd, key=ClassNamingShouldBeCamelRule], [repository=pmd, key=UselessStringValueOf], [repository=pmd, key=CommentContent], [repository=pmd, key=ProperCloneImplementation], [repository=pmd, key=ShortClassName], [repository=pmd, key=AtLeastOneConstructor], [repository=pmd, key=AvoidCatchingThrowable], [repository=pmd, key=ShortMethodName], [repository=pmd, key=NullAssignment], [repository=pmd, key=EmptyFinallyBlock], [repository=pmd, key=LoosePackageCoupling], [repository=pmd, key=FinalizeOverloaded], [repository=pmd, key=PositionLiteralsFirstInCaseInsensitiveComparisons], [repository=pmd, key=ClassMustHaveAuthorRule], [repository=pmd, key=FieldDeclarationsShouldBeAtStartOfClass], [repository=pmd, key=AvoidUsingShortType], [repository=pmd, key=MisplacedNullCheck], [repository=pmd, key=UnnecessaryConstructor], [repository=pmd, key=DoNotUseThreads], [repository=pmd, key=CountDownShouldInFinallyRule], [repository=pmd, key=AvoidAccessibilityAlteration], [repository=pmd, key=ClassNamingConventions], [repository=pmd, key=ConcurrentExceptionWithModifyOriginSubListRule], [repository=pmd, key=ImportFromSamePackage], [repository=pmd, key=UnconditionalIfStatement], [repository=pmd, key=UnnecessaryConversionTemporary], [repository=pmd, key=EnumConstantsMustHaveCommentRule], [repository=pmd, key=PositionLiteralsFirstInComparisons], [repository=pmd, key=ReturnFromFinallyBlock], [repository=pmd, key=CommentsMustBeJavadocFormatRule], [repository=pmd, key=SimpleDateFormatNeedsLocale], [repository=pmd, key=LocalVariableCouldBeFinal], [repository=pmd, key=DefaultLabelNotLastInSwitchStmt], [repository=pmd, key=AbstractMethodOrInterfaceMethodMustUseJavadocRule], [repository=pmd, key=SingularField], [repository=pmd, key=AvoidPrintStackTrace], [repository=pmd, key=UseIndexOfChar], [repository=pmd, key=AvoidNewDateGetTimeRule], [repository=pmd, key=UseCollectionIsEmpty], [repository=pmd, key=MethodReturnsInternalArray], [repository=pmd, key=FinalizeShouldBeProtected], [repository=pmd, key=AvoidDecimalLiteralsInBigDecimalConstructor], [repository=pmd, key=IfElseStmtsMustUseBraces], [repository=pmd, key=TooManyMethods], [repository=pmd, key=DefaultPackage], [repository=pmd, key=WhileLoopsMustUseBraces], [repository=pmd, key=AvoidPrefixingMethodParameters], [repository=pmd, key=BigDecimalAvoidDoubleConstructorRule], [repository=pmd, key=AvoidThrowingNullPointerException], [repository=pmd, key=AvoidUsingVolatile], [repository=pmd, key=SimplifiedTernary], [repository=pmd, key=AssignmentInOperand], [repository=pmd, key=UseVarargs], [repository=pmd, key=DoNotHardCodeSDCard], [repository=pmd, key=DuplicateImports], [repository=pmd, key=NonCaseLabelInSwitchStatement], [repository=pmd, key=CouplingBetweenObjects], [repository=pmd, key=ExcessiveParameterList], [repository=pmd, key=CloneMethodMustImplementCloneableWithTypeResolution], [repository=pmd, key=PojoNoDefaultValueRule], [repository=pmd, key=UnnecessaryParentheses], [repository=pmd, key=LongVariable], [repository=pmd, key=ServiceOrDaoClassShouldEndWithImplRule], [repository=pmd, key=SuspiciousConstantFieldName], [repository=pmd, key=AvoidUsingOctalValues], [repository=pmd, key=MethodTooLongRule], [repository=pmd, key=ThreadPoolCreationRule], [repository=pmd, key=ClassCastExceptionWithSubListToArrayListRule], [repository=pmd, key=AvoidProtectedFieldInFinalClass], [repository=pmd, key=ReplaceEnumerationWithIterator], [repository=pmd, key=NonStaticInitializer], [repository=pmd, key=InefficientStringBuffering], [repository=pmd, key=SuspiciousEqualsMethodName], [repository=pmd, key=ExtendsObject], [repository=pmd, key=AvoidMissUseOfMathRandomRule], [repository=pmd, key=AccessorClassGeneration], [repository=pmd, key=TooManyFields], [repository=pmd, key=CheckResultSet], [repository=pmd, key=EmptyTryBlock], [repository=pmd, key=StringToString], [repository=pmd, key=AvoidSynchronizedAtMethodLevel], [repository=pmd, key=UnnecessaryReturn], [repository=pmd, key=NcssMethodCount], [repository=pmd, key=BooleanGetMethodName], [repository=pmd, key=SimplifyBooleanExpressions], [repository=pmd, key=CyclomaticComplexity], [repository=pmd, key=TooFewBranchesForASwitchStatement], [repository=pmd, key=UnusedPrivateMethod], [repository=pmd, key=AvoidPatternCompileInMethodRule], [repository=pmd, key=AddEmptyString], [repository=pmd, key=ModifiedCyclomaticComplexity], [repository=pmd, key=EmptyStaticInitializer], [repository=pmd, key=BigIntegerInstantiation], [repository=pmd, key=UseRightCaseForDateFormatRule], [repository=pmd, key=CloneMethodMustImplementCloneable], [repository=pmd, key=GodClass], [repository=pmd, key=ExceptionAsFlowControl], [repository=pmd, key=MethodNamingConventions], [repository=pmd, key=MisleadingVariableName], [repository=pmd, key=SwitchStatementRule], [repository=pmd, key=WrapperTypeEqualityRule], [repository=pmd, key=RedundantFieldInitializer], [repository=pmd, key=DontCallThreadRun], [repository=pmd, key=CloneMethodMustBePublic], [repository=pmd, key=UpperEllRule], [repository=pmd, key=UseProperClassLoader], [repository=pmd, key=UnnecessaryFinalModifier], [repository=pmd, key=NoPackage], [repository=pmd, key=AbstractClassWithoutAbstractMethod], [repository=pmd, key=UncommentedEmptyConstructor], [repository=pmd, key=InsufficientStringBufferDeclaration], [repository=pmd, key=CommentRequired], [repository=pmd, key=LowerCamelCaseVariableNamingRule], [repository=pmd, key=ConfusingTernary], [repository=pmd, key=EmptySwitchStatements], [repository=pmd, key=XPathRule], [repository=pmd, key=AvoidDuplicateLiterals], [repository=pmd, key=ConstantFieldShouldBeUpperCaseRule], [repository=pmd, key=AvoidRethrowingException], [repository=pmd, key=AvoidConstantsInterface], [repository=pmd, key=AvoidApacheBeanUtilsCopyRule], [repository=pmd, key=AvoidManuallyCreateThreadRule], [repository=pmd, key=UnusedFormalParameter], [repository=pmd, key=CloneMethodReturnTypeMustMatchClassName], [repository=pmd, key=UseArraysAsList], [repository=pmd, key=EqualsAvoidNullRule], [repository=pmd, key=ConsecutiveAppendsShouldReuse], [repository=pmd, key=CompareObjectsWithEquals], [repository=pmd, key=AvoidDoubleOrFloatEqualCompareRule], [repository=pmd, key=EmptySynchronizedBlock], [repository=pmd, key=AvoidEnumAsIdentifier], [repository=pmd, key=CloneThrowsCloneNotSupportedException], [repository=pmd, key=EmptyStatementBlock], [repository=pmd, key=TooManyStaticImports], [repository=pmd, key=BooleanPropertyShouldNotStartWithIsRule], [repository=pmd, key=UnnecessaryLocalBeforeReturn], [repository=pmd, key=UnnecessaryFullyQualifiedName], [repository=pmd, key=UseArrayListInsteadOfVector], [repository=pmd, key=EqualsNull], [repository=pmd, key=IfStmtsMustUseBraces], [repository=pmd, key=AvoidReassigningParameters], [repository=pmd, key=CloseResource], [repository=pmd, key=ExcessivePublicCount], [repository=pmd, key=AvoidFieldNameMatchingMethodName], [repository=pmd, key=OneDeclarationPerLine], [repository=pmd, key=FinalizeDoesNotCallSuperFinalize], [repository=pmd, key=PackageCase], [repository=pmd, key=AvoidUseTimerRule], [repository=pmd, key=UnsupportedExceptionWithModifyAsListRule]]> [INFO] [ERROR] Tests run: 76, Failures: 1, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for SonarQube PMD Project 3.2.1: [INFO] [INFO] SonarQube PMD Project .............................. SUCCESS [ 1.853 s] [INFO] SonarQube PMD Plugin ............................... FAILURE [ 11.130 s] [INFO] SonarQube PMD Plugin Integration Test .............. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.689 s [INFO] Finished at: 2020-10-31T10:18:08+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project sonar-pmd-plugin: There are test failures. [ERROR] [ERROR] Please refer to /home/sonar-pmd-p3c/sonar-pmd-plugin/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :sonar-pmd-plugin