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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -