You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2022/06/03 14:32:04 UTC
[jackrabbit-filevault] 01/01: JCRVLT-634 check shipped dependencies
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/JCRVLT-634-check-shipped-dependencies
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
commit 076d24a2b55badcebbb85b96f9b80d1c177c5745
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Jun 3 16:31:57 2022 +0200
JCRVLT-634 check shipped dependencies
WIP
---
vault-cli/pom.xml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/vault-cli/pom.xml b/vault-cli/pom.xml
index d9cdeea5..f97f2f59 100644
--- a/vault-cli/pom.xml
+++ b/vault-cli/pom.xml
@@ -108,6 +108,37 @@
</excludes>
</configuration>
</plugin>
+ <!-- validate that all necessary dependencies are part of the application -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>maven-enforcer-rules</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>enforce-complete-runtime-classpath</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireTransitiveProvidedDependenciesInRuntimeClasspath
+ implementation="org.apache.sling.maven.enforcer.RequireTransitiveProvidedDependenciesInRuntimeClasspath">
+ <excludes>
+ <exclude>javax.servlet:javax.servlet-api</exclude><!-- not used in the CLI context -->
+ </excludes>
+ </requireTransitiveProvidedDependenciesInRuntimeClasspath>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>