Maven and the "provided" dependency scope

13 views
Skip to first unread message

Laurent Pireyn

unread,
Mar 18, 2021, 10:40:26 AM3/18/21
to Prometheus Developers
Hi,

I noticed the dependencies on third-party libraries have the (default) "compile" scope. For example, in simpleclient_jetty, the dependency on jetty-server doesn't specify any scope.

Wouldn't it be better to declare those dependencies in the "provided" scope? After all, it is the responsibility of the dependent POM authors to explicitly specify the dependency-ies on the third-party libraries and not rely on them being pulled in transitively by the Prometheus client library.

Thanks for you feedback!
Reply all
Reply to author
Forward
0 new messages