Skip to content

Instantly share code, notes, and snippets.

@nhumblot
Created May 31, 2021 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhumblot/f71844e3f21afe8fc52d1e566080b8a6 to your computer and use it in GitHub Desktop.
Save nhumblot/f71844e3f21afe8fc52d1e566080b8a6 to your computer and use it in GitHub Desktop.
[nhumblot@home dependency-check-maven-sample]$ mvn clean dependency-check:check
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.mycompany.app:my-app >----------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ my-app ---
[INFO] Deleting /home/nhumblot/dev/wkspace/owasp-dependency-check-test-directory/dependency-check-maven-sample/target
[INFO]
[INFO] --- dependency-check-maven:6.2.0:check (default-cli) @ my-app ---
[INFO] Checking for updates
[INFO] Skipping NVD check since last check was within 4 hours.
[INFO] Skipping RetireJS update since last update was within 24 hours.
[INFO] Check for updates complete (60 ms)
[INFO]
Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the user’s risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.
About ODC: https://jeremylong.github.io/DependencyCheck/general/internals.html
False Positives: https://jeremylong.github.io/DependencyCheck/general/suppression.html
💖 Sponsor: https://github.com/sponsors/jeremylong
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (0 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Jar Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[WARNING] An unexpected error occurred during analysis of '/home/nhumblot/.m2/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22.jar' (CPE Analyzer): end-of-string expected at position 202
[ERROR]
java.lang.IllegalArgumentException: end-of-string expected at position 202
at org.apache.lucene.util.automaton.RegExp.<init> (RegExp.java:488)
at org.apache.lucene.search.RegexpQuery.<init> (RegexpQuery.java:138)
at org.apache.lucene.search.RegexpQuery.<init> (RegexpQuery.java:121)
at org.apache.lucene.search.RegexpQuery.<init> (RegexpQuery.java:92)
at org.apache.lucene.queryparser.classic.QueryParserBase.newRegexpQuery (QueryParserBase.java:578)
at org.apache.lucene.queryparser.classic.QueryParserBase.getRegexpQuery (QueryParserBase.java:760)
at org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery (QueryParserBase.java:826)
at org.apache.lucene.queryparser.classic.QueryParser.Term (QueryParser.java:469)
at org.apache.lucene.queryparser.classic.QueryParser.Clause (QueryParser.java:355)
at org.apache.lucene.queryparser.classic.QueryParser.Query (QueryParser.java:303)
at org.apache.lucene.queryparser.classic.QueryParser.Clause (QueryParser.java:359)
at org.apache.lucene.queryparser.classic.QueryParser.Query (QueryParser.java:244)
at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery (QueryParser.java:215)
at org.apache.lucene.queryparser.classic.QueryParserBase.parse (QueryParserBase.java:109)
at org.owasp.dependencycheck.data.cpe.AbstractMemoryIndex.parseQuery (AbstractMemoryIndex.java:277)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.searchCPE (CPEAnalyzer.java:446)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.determineCPE (CPEAnalyzer.java:280)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.analyzeDependency (CPEAnalyzer.java:785)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
at java.lang.Thread.run (Thread.java:829)
[INFO] Finished CPE Analyzer (1 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Sonatype OSS Index Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (2 seconds)
[INFO] Writing report to: /home/nhumblot/dev/wkspace/owasp-dependency-check-test-directory/dependency-check-maven-sample/target/dependency-check-report.html
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.608 s
[INFO] Finished at: 2021-05-31T15:06:33+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:6.2.0:check (default-cli) on project my-app: One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis:
[ERROR] IllegalArgumentException: end-of-string expected at position 202
[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/MojoExecutionException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment