tag | 86bd877cdb5ea80e0dff917a22538a721550e654 | |
---|---|---|
tagger | Konrad Windszus <konrad.windszus@netcentric.biz> | Thu Jun 09 10:18:19 2022 +0200 |
object | b290cbb9f7241064f2de719c2476dc87c1407359 |
[maven-release-plugin] copy for tag maven-enforcer-rules-1.0.0
commit | b290cbb9f7241064f2de719c2476dc87c1407359 | [log] [tgz] |
---|---|---|
author | Konrad Windszus <konrad.windszus@netcentric.biz> | Thu Jun 09 10:18:15 2022 +0200 |
committer | Konrad Windszus <konrad.windszus@netcentric.biz> | Thu Jun 09 10:18:15 2022 +0200 |
tree | 78d07cf395b54edba93ebfc4d9848f91bd5d6408 | |
parent | 35aaad7855c0bf6d01cce8a697a8cfb66c2fd998 [diff] |
[maven-release-plugin] prepare release maven-enforcer-rules-1.0.0
This module is part of the Apache Sling project.
It provides additional Maven Enforcer rules.
Checks that the runtime classpath (e.g. used by Maven Plugins via the Plugin Classloader or by the Appassembler Maven Plugin's assemble
goal) contains all provided dependencies.
As those are not transitively inherited they need to be declared explicitly in the pom.xml of the using Maven project.
The check assumes semantic versioning, i.e. for provided dependencies without a version range all compatible runtime dependencies are accepted (i.e. ones that share groupId, artifactId, classifier and extension, and have the same major version and minor version which is equal or higher to the one of the provided dependency.
All parameters are optional.
excludes
- a list of dependencies to skip. Their transitive dependencies are not evaluated either. The format is <groupId>[:<artifactId>[:<extension>[:<classifier>]]]
. Wild cards (*
) may be used to replace an entire part of a section. Examples:org.apache.maven
(everything with the given group)org.apache.maven:myArtifact
org.apache.maven:*:jar
includeOptionalDependencies
- whether to include optional dependencies in the check. Either true
or false
. By default no optional dependencies are checked.includeDirectDependencies
- whether to include direct (provided) dependencies in the check. Either true
or false
. By default no direct provided dependencies are checked, i.e. only transitive ones are considered.<project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0</version> <dependencies> <dependency> <groupId>org.apache.sling</groupId> <artifactId>maven-enforcer-rules</artifactId> <version>LATEST</version> </dependency> </dependencies> <executions> <execution> <id>enforce-complete-runtime-classpath</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireProvidedDependenciesInRuntimeClasspath implementation="org.apache.sling.maven.enforcer.RequireProvidedDependenciesInRuntimeClasspath"> <excludes> <exclude>javax.servlet:javax.servlet-api</exclude> </excludes> </requireProvidedDependenciesInRuntimeClasspath> </rules> <fail>true</fail> </configuration> </execution> </executions> </plugin> </plugins> </build> [...] </project>