This is an automated email from the ASF dual-hosted git repository.
nfilotto pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 0e1427922b1 CAMEL-19871: camel-jooq - Set the proper scope to all test
dependencies (#11455)
0e1427922b1 is described below
commit 0e1427922b14dde253a7fbe74f1ed32687265f70
Author: Nicolas Filotto <[email protected]>
AuthorDate: Tue Sep 19 14:03:59 2023 +0200
CAMEL-19871: camel-jooq - Set the proper scope to all test dependencies
(#11455)
## Motivation
There are many test dependencies of the camel-joor component for which no
scope has been set which pulls useless dependencies at runtime.
## Modifications:
* Add the test scope to all test dependencies to avoid getting the default
scope which is compile
* Prevent the maven-javadoc-plugin from generating the Javadoc of the test
classes generated by jooq-codegen-maven
---
components/camel-jooq/pom.xml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/components/camel-jooq/pom.xml b/components/camel-jooq/pom.xml
index 4cc9dfe6833..1418b91af50 100644
--- a/components/camel-jooq/pom.xml
+++ b/components/camel-jooq/pom.xml
@@ -84,11 +84,13 @@
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring-version}</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring-version}</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
@@ -100,6 +102,7 @@
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>${awaitility-version}</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
@@ -232,6 +235,15 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration combine.self="override">
+ <!-- Prevent the maven-javadoc-plugin from generating the
Javadoc of the test classes generated
+ by jooq-codegen-maven -->
+
<sourcepath>${project.build.sourceDirectory};src/generated/java</sourcepath>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>