Which maven scope to use? -


El-api.jar is required to compile my project. At the same time, this library is provided by the Tomcat Container, when the web app is deployed.

What should I do to successfully compile the project, but simultaneously - the API in my web-INF / Lib?

Thank you.

This is a classic usecake for the provided area.

Provided This is very similar to a compilation, but indicates that you provide dependency on the JDK or container on runtime Expect to do. For example, when creating a web application for Java Enterprise Edition, you will determine the dependency on the serlet API and related Java EE API for the claim because the web container provides those sections. This scope is available only on the compilation and testing class, and is not infected.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -