-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Warning "No SLF4J providers were found" #153
Comments
@Gr33ndev - since you've helped out with the java library logging, pinging you to see if you have any solutions |
@vargenau this probably means you don't have an SLF4J implementation JAR in your classpath. The reason Spdx-Java-Library doesn't provide one is that there are several choices that are suited for different scenarios/preferences, and it's inappropriate for a library to make that implementation decision on behalf of all downstream consumers. The solution is to pick one of the SLF4J implementations and add it to your classpath (perhaps via a build file, if you're using a build tool e.g. |
@pmonks Previously my shell-script was:
I have updated it to:
but I still get the same warnings. What am I doing wrong? |
@vargenau do all those files exist in those locations? Also, IIRC I'd encourage you to consider using a Maven-based build tool (Maven, Gradle, etc.) instead of trying to manually manage Java dependencies like this - the approach you're taking is quite brittle and error prone. [edit] and it looks like you're using the "with dependencies" variant of the |
Hi @pmonks I even removed the Apple quarantine flag (it's a Mac):
But that does not help. Anyway, I can live with these warnings. |
I have a proposed fix in the pull request above. Can you review it ? |
@goneall |
thanks @le-jhe for the analysis and fix. Although the intent of this .jar file is to be used as a standalone app and not a library, I am a bit worried that it may well be used as a library and cause issues for downstream users. That being said, perhaps we should go ahead and merge this since I think most usage is as a standalone Jar. @pmonks - any thoughts on whether we should merge in PR #158 ? |
How to get rid of the following warning:
tools-java release 1.1.8
The text was updated successfully, but these errors were encountered: