Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

license_finder cannot find mvn and npm on Windows (jruby)

29 views
Skip to first unread message

Christian Köberl

unread,
Jan 14, 2020, 7:10:38 AM1/14/20
to license-finder
When I run license_finder on my Windows 10 machine it cannot find the executables for mvn and npm. Is this a known problem? Is there a workaround for this?


λ license_finder
2020-01-14T12:53:36.172+01:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
LicenseFinder::Maven: is active
IOError: Cannot run program "mvn" (in directory "D:\github.com\porscheinformatik\angular-spring-heroes"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden
                           popen3 at org
/jruby/RubyIO.java:5085
                           popen3 at D
:/scoop/apps/jruby/current/lib/ruby/stdlib/jruby/open3_windows.rb:74
                         capture3 at D
:/scoop/apps/jruby/current/lib/ruby/stdlib/jruby/open3_windows.rb:272
                              run at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/shared_helpers/cmd.rb:9
                 current_packages at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/package_managers/maven.rb:19
                            chdir at org
/jruby/RubyDir.java:442
                 current_packages at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/package_managers/maven.rb:19
  current_packages_with_relations at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/package_manager.rb:101
                             each at org
/jruby/RubyArray.java:1814
                         flat_map at org
/jruby/RubyEnumerable.java:945
                  active_packages at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/scanner.rb:34
                 current_packages at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/core.rb:83
                 decision_applier at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/core.rb:78
                    any_packages
? at D:/scoop/apps/jruby/current/lib/ruby/stdlib/forwardable.rb:223
                    any_packages
? at D:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/license_aggregator.rb:17
                              map at org
/jruby/RubyArray.java:2580
                    any_packages
? at D:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/license_aggregator.rb:15
                     action_items at D
:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/lib/license_finder/cli/main.rb:108
                              run at D
:/scoop/apps/jruby/current/gems/gems/thor-1.0.1/lib/thor/command.rb:27
                   invoke_command at D
:/scoop/apps/jruby/current/gems/gems/thor-1.0.1/lib/thor/invocation.rb:127
                         dispatch at D
:/scoop/apps/jruby/current/gems/gems/thor-1.0.1/lib/thor.rb:392
                            start at D
:/scoop/apps/jruby/current/gems/gems/thor-1.0.1/lib/thor/base.rb:485
                           
<main> at D:/scoop/apps/jruby/current/gems/gems/license_finder-5.11.1/bin/license_finder:6
                             load at org
/jruby/RubyKernel.java:1013
                           
<main> at D:\scoop\apps\jruby\current\gems\bin\license_finder:23



Reply all
Reply to author
Forward
0 new messages