Skip to content
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

Option to ignore optional dependencies #276

Open
anderius opened this issue Feb 9, 2023 · 3 comments
Open

Option to ignore optional dependencies #276

anderius opened this issue Feb 9, 2023 · 3 comments

Comments

@anderius
Copy link

anderius commented Feb 9, 2023

The following dependency is not included in the produced artifact, and it would be nice if it was not included in the sbom. At least some way to disable that inclusion:

    <dependency>
      <groupId>sample.ProjectA</groupId>
      <artifactId>Project-A</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
@norrisjeremy
Copy link

On a related note: why aren't optional dependencies marked with a scope of optional in the generated SBOM?

@hboutemy
Copy link
Contributor

On a related note: why aren't optional dependencies marked with a scope of optional in the generated SBOM?

IIUC, current SBOM scope is not taken from Maven POM but from project dependency used/unused analysis: see #65

@knrc
Copy link
Contributor

knrc commented May 8, 2023

FYI #314 should address the question about scope, shifting the determination to rely on the maven understanding of optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants