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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

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

c++ - Redefined variable in the other module -