How to illustrate in UML dependency on external libraries, like Hibernate, Apache POI etc?
You would normally represent this in an implementation diagram that shows the module (component) structure. Simply put the external libraries on the diagram and stereotype them appropriately to make it clear that they are external dependencies. Then use a "uses" dependency relation to indicate the parts of the system that depend on them.
For example, to use a trivially simple case ...

This shows two system modules (JAR files) with one dependent on the other, and one of them dependent on an external JAR file. The stereotypes used to make the nature of the modules clear are custom stereotypes that I've created for this model (as UML doesn't come with such specific stereotypes in its meta-model).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With