-
Notifications
You must be signed in to change notification settings - Fork 11
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
unexpected behavior on scope #69
Comments
The "allows the accumulation of multiple scopes and their associated implied scopes" where the "implied scopes" bits seem to what is causing confusion. When you limit the scope to "compile" there is an implied "provided" scope, so More generally the |
so you mean by "implied scopes", a scope name may actually contain multiple available scopes. Here's some findings:
|
@zhaolida98 yes that sounds roughly about the same thing that is documented here: The For example, when computing Maybe this helps more than the official docs? |
BTW, I would like to know if you provide any remediation or license information? I couldn't see relative terms in |
Hi, I am trying to use
-Dossindex.scope
to filter the output, but I found the function behavior unexpected. So I made an example project which includes all scopes (except system and import).I found that when I type the following command:
mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -Dossindex.fail=false -Dossindex.reportFile=target/audit-report.json -Dossindex.scope=test
None of the components are filtered from the report. This is unexpected, because I think only "test" scope components should left.
I did one more test, when I change the command to
mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -Dossindex.fail=false -Dossindex.reportFile=target/audit-report.json -Dossindex.scope=compile
only the following components are included
This is also not expected, because "provided" component is inside. Why is that? How does this function work? Did I do it wrong?
The text was updated successfully, but these errors were encountered: