vlsi commented on issue #11442:
URL: https://github.com/apache/maven/issues/11442#issuecomment-3536588984

   Ok, I got corrected.
   
   So far my experience with `provided` was `provided servlet-api:servlet-api` 
while in practice the runtime was `weblogic.jar` :)
   I'm not sure how would I one use that.
   
   > component expects to be present at runtime
   
   There's `module-info.java` with a similar intention.
   There's OSGi set of manifest entries which mention per-package "requirement".
   
   However, I wonder what would you do with a case when pom declares 
`<provided>javax.servlet:javax.servlet-api</provided>` while the runtime has 
its own jar with the same classes instead. How is that `servlet-api` useful 
then?
   It might be servlet-api should be `<scope>compile</scope>` (as the classes 
probably implement `Servlet` or `Filter`).
   
   
   Frankly, I would like to hear more on the use cases for `provided`.
   As for now, I somewhat like that Maven strips the pom for publication, so 
people do not accidentally depend on the implementation details.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to