Provided Scope Maven Extension
This is a maven extension that changes the behavior of Maven dependency resolution to always favor provided scoped dependencies over compile and runtime. This means that, regardless of depth in dependency tree, if an artifact of any version is provided, then that artifact will always be considered provided. And all of its dependant artifacts will
also be considered provided.
Using
You can declare this extension in a number of ways. However, it must be outside the build context. So it cannot be in the POM. The most popular and recommended way is to use an .mvn/extensions.xml file:
<extensions
xmlns="http://maven.apache.org/EXTENSIONS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.1.0 https://maven.apache.org/xsd/core-extensions-1.1.0.xsd">
<extension>
<groupId>com.inteligr8</groupId>
<artifactId>provided-scope-maven-extension</artifactId>
<version>...</version>
</extension>
</extensions>
Configuration
There is nothing to configure. There are no options. This simply does its job.
Description
Languages
Java
100%