pivotal / LicenseFinder

Find licenses for your project's dependencies.
MIT License
1.72k stars 339 forks source link

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... (RuntimeError) #1032

Open kulsinghdeep opened 5 months ago

kulsinghdeep commented 5 months ago

Hi team,

am running licensce finder on my java app but while executing licensce_fnder am getting below error.

icense_finder LicenseFinder::Maven: is active /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/package_managers/maven.rb:20:in current_packages': Command 'mvn org.codehaus.mojo:license-maven-plugin:download-licenses' failed to execute: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... (RuntimeError) from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/package_manager.rb:105:incurrent_packages_with_relations' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/scanner.rb:42:in each' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/scanner.rb:42:inflat_map' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/scanner.rb:42:in active_packages' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/core.rb:84:incurrent_packages' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/core.rb:79:in decision_applier' from /usr/lib/ruby/3.0.0/forwardable.rb:232:inany_packages?' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/license_aggregator.rb:17:in block in any_packages?' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/license_aggregator.rb:15:inmap' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/license_aggregator.rb:15:in any_packages?' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/lib/license_finder/cli/main.rb:121:inaction_items' from /var/lib/gems/3.0.0/gems/thor-1.3.1/lib/thor/command.rb:28:in run' from /var/lib/gems/3.0.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:ininvoke_command' from /var/lib/gems/3.0.0/gems/thor-1.3.1/lib/thor.rb:527:in dispatch' from /var/lib/gems/3.0.0/gems/thor-1.3.1/lib/thor/base.rb:584:instart' from /var/lib/gems/3.0.0/gems/license_finder-7.1.0/bin/license_finder:6:in <top (required)>' from /usr/local/bin/license_finder:25:inload' from /usr/local/bin/license_finder:25:in `

'

When i am running on sample app caluclator its work fine.

cf-gitbot commented 5 months ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.