-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add license support for Maven dependencies #3812
Comments
Hello @gongomgra Trivy currently doesn't support searching for licenses from jar files. If you have time and desire - we are always glad to new contributors! |
Would this task involve: a) Find the associated pom file in Maven Central (e.g. https://repo1.maven.org/maven2/org/apache/tomcat/tomcat-jdbc/9.0.73/tomcat-jdbc-9.0.73.pom) and read the licenses information from the maven pom. |
Hello @coheigea
We use
It way looks prefer, but i am not sure, that all At the moment we are focusing to adding licenses only for pom.xml files. |
@DmitriyLewen Thanks for the update, I agree adding license information to the DB would be great. Is there any way that I can track the work for this? I might be able to help out a bit on it. |
I'll close this issue. |
Description
We are running both image and filesystem actions against the official Tomcat 9.0.73 docker image, and source code, generating the SPDX JSON output in both cases.
We noticed that maven dependencies, although detected, don't include the license information (always showing
NONE
aslicenseDeclared
andlicenseConcluded
fields). Can you tell us if this is intentional or if there is any known issue here? Find below a sample package detectedAlso, this is the output of
trivy -v
version, and the command used to install it.What did you expect to happen?
Maven dependencies get their license fields properly detected
What happened instead?
All of them are set as
NONE
.Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
Apache Tomcat 9.0.73 image:
tomcat:9.0.73
Apache Tomcat 9.0.73 source code: https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.73/src/apache-tomcat-9.0.73-src.tar.gz
The text was updated successfully, but these errors were encountered: