# Javaclasspathtest.validate\_libraries\_only\_if\_not\_filtered\_out illegalstate

**URL:** <https://community.sonarsource.com/t/javaclasspathtest-validate-libraries-only-if-not-filtered-out-illegalstate/35938>\
**Category:** Plugin Development\
**Tags:** java\
**Created:** [December 16, 2020, 7:16am UTC](https://community.sonarsource.com/t/javaclasspathtest-validate-libraries-only-if-not-filtered-out-illegalstate/35938 "2020-12-16T07:16:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_online](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/c_online/32/17653_2.png) [@c\_online](https://community.sonarsource.com/u/c_online)\
**Post date:** [December 16, 2020, 7:16am UTC](https://community.sonarsource.com/t/javaclasspathtest-validate-libraries-only-if-not-filtered-out-illegalstate/35938/1 "2020-12-16T07:16:06Z")

</div>

when i execute “mvn package”, i got the follow:

```
    [INFO] Results:

    [INFO]

    [ERROR] Errors:

    [ERROR] JavaClasspathTest.validate_libraries_only_if_not_filtered_out:364 » IllegalState

    [INFO]

[ERROR] Tests run: 1637, Failures: 0, Errors: 1, Skipped: 0

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for SonarJava 5.8.0-SNAPSHOT:

[INFO]

[INFO] SonarJava .......................................... SUCCESS [0.978 s]

[INFO] SonarQube Java :: Maven model generator ............ SUCCESS [2.275 s]

[INFO] SonarQube Java :: Front-end ........................ FAILURE [43.321 s]

[INFO] SonarQube Java :: Check Test tool kit .............. SKIPPED

[INFO] SonarQube Java :: Checks ........................... SKIPPED

[INFO] SonarQube Java :: External Reports Sensor .......... SKIPPED

[INFO] SonarQube Java :: Surefire ......................... SKIPPED

[INFO] SonarQube Java :: JaCoCo ........................... SKIPPED

[INFO] SonarQube Java :: Plugin ........................... SKIPPED

[INFO] SonarQube Java :: JaCoCo Listeners ................. SKIPPED

[INFO] SonarQube Java :: ITs .............................. SKIPPED

[INFO] SonarQube Java :: ITs :: Performancing ............. SKIPPED

[INFO] SonarQube Java :: ITs :: Plugin .................... SKIPPED

[INFO] SonarQube Java :: ITs :: Plugin :: Plugins ......... SKIPPED

[INFO] SonarQube Java :: ITS :: Plugin :: Java Extension Plugin SKIPPED

[INFO] SonarQube Java :: ITs :: Plugin :: Tests ........... SKIPPED

[INFO] SonarQube Java :: ITs :: Ruling .................... SKIPPED

[INFO] SonarQube Java :: ITs :: Semantic .................. SKIPPED

[INFO] SonarQube Java :: ITS :: Semantic :: Java Debugging Plugin SKIPPED

[INFO] SonarQube Java :: ITs :: Semantic :: Tests ......... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 47.147 s

[INFO] Finished at: 2020-12-16T14:23:46+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project java-frontend: There are test failures.

[ERROR]

[ERROR] Please refer to /Users/liziwei/Desktop/Project/Java/Ezviz-Sonarqube/sonar-java/java-frontend/target/surefire-reports for the individual test results.

[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].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 <args> -rf :java-frontend

```

so， how to solve ，think you
