The "provided" area is not added to banks in the class path

I use the dependency of the size of the "provided" pom artifact file. Due to the "provided" area, these dependency banks are not added to the MANIFEST.MF class path.

Could you help me so that the jars are not loaded, but should be added to the classpath.

+4
source share
1 answer

Well, if you want it to be semantically correct, remove the <scope>provided</scope> and leave it at the default ( <scope>compile</scope> ). Then set <optional>true</optional> for the dependency, so it will be included in the manifest class path.

Using the provided scope, you really say that you don't want it to be in the explicit class path, since it is still provided by the container.

+5
source

All Articles