Dependency Exclusions
To exclude dependencies that are not used in the project, Maven supports dependency exclusions. You can set exclusions on a specific dependency in your POM file. For example,
Note:
- Dependency exclusions are to be used when you generate an EAR using the Maven install or package goals.
- Support for dependency exclusions is provided on the top-level POM.