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

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -