Maven build is packaging unneeded jars into our application
Issue
- We're building our JBoss application through maven. It looks like all dependencies are being included in the application though. We don't want that as some dependencies at run time will be provided by JDK or JBoss layer libraries. How can we prevent a dependency from being bundled in the application by maven?
Environment
- Maven
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
