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 · 1 comment
Open

Make it possible to exclude sub-modules #553

amanica opened this issue Mar 20, 2024 · 1 comment

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

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

2 participants