How do i configure maven so that it uses jar for compilation but excludes all of them while bundling into a war file

<>

This question already has an answer here:

Answers


That's what provided scope is about. From Maven docs about provided:

This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive.


Do you create the WAR file using the maven-assembly-plugin? If so, you can exclude the dependencies being copied.


Need Your Help

Apple PushKit didUpdatePushCredentials is never called on iOS 9+

ios iphone apple-push-notifications voip pushkit

I am developing a VoIP app for iPhone. To receive calls, Apple developed PushKit so developers can send VoIP notifications using APNS.

How to export import SQLite database from/to Dropbox in Android?

java android sqlite dropbox

I have successfully integrated dropbox with my app and can upload and can download files, but when I upload a sqlite database file then after downloading it, the file doesn't contains any data.