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

Take only specified Maven profiles into account instead of the default one #1774

Open
Tracked by #5066
sschuberth opened this issue Sep 5, 2019 · 4 comments
Open
Tracked by #5066
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements

Comments

@sschuberth
Copy link
Member

Currently, ORT only considers dependencies of the Maven profile that is activated by default for the platform / environment ORT runs on. Ideally, ORT would instead enumerate all profiles and analyze each one separately. This could be modeled by "virtual" projects that are a combination of project name and profile name: A project "foo" with profiles "p1" and "p2" could be modeled as two projects "foo-p1" and "foo-p2", each with potentially different dependencies.

@sschuberth sschuberth added analyzer About the analyzer tool enhancement Issues that are considered to be enhancements labels Sep 5, 2019
@uszeiss
Copy link
Contributor

uszeiss commented Oct 20, 2020

If I understand the issue description correctly, the current ORT version does not allow me to specify a Maven profile to be used for the analysis. Only the default profile will be used. Is this correct?

@sschuberth
Copy link
Member Author

Yes, that is correct.

@sschuberth sschuberth changed the title Take all Maven profiles into account instead of just the default one Take only specified Maven profiles into account instead of the default one Jun 9, 2021
@sschuberth
Copy link
Member Author

One idea how to address this would be to allow .ort.yml to specify additional package-manager-specific information, like the Maven profile to use.

@sschuberth
Copy link
Member Author

A thought about the implementation: Conceptually, profile selection could work via something like "profile excludes" similar to scope / path excludes, in the sense that also dependencies from excluded profiles do not disappear completely, but are only marked as excluded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements
Projects
None yet
Development

No branches or pull requests

2 participants