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

Make it possible to exclude sub-modules #553

Open
amanica opened this issue Mar 20, 2024 · 2 comments
Open

Make it possible to exclude sub-modules #553

amanica opened this issue Mar 20, 2024 · 2 comments

Comments

@amanica
Copy link
Contributor

amanica commented Mar 20, 2024

Hi,
I've tried all the exclude options in aggregate-download-licenses, but they only seem to work on the the dependent artifacts and not the actual maven sub-modules. I looked a bit at the source code too, but it seems there is no way to filter out reactor modules.

My use case:
I wanted to create a sub-module to be re-used for tests in other modules, and I need to exclude all test dependencies from aggregate-download-licenses. But since my test library brings in dependencies under compile scope, they make it into the license report which I don't want.
Unfortunately because of maven limitations, using the test-jar is not ideal either as it does not bring in transitive dependencies:
https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html

@slawekjaranowski
Copy link
Member

@MrBanana05
Copy link

We have the exact same use-case and would love to see this feature as well. The configuration for our specific environment is so much more complicated without this feature.

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

No branches or pull requests

3 participants