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 c222cee10e9 CAMEL-17864: Fix the scope of the deps of the 
camel-bundle-plugin (#7496)
c222cee10e9 is described below

commit c222cee10e9eec29969822a7fe1453c04d66b103
Author: Nicolas Filotto <[email protected]>
AuthorDate: Tue Apr 26 16:29:00 2022 +0200

    CAMEL-17864: Fix the scope of the deps of the camel-bundle-plugin (#7496)
    
    ## Motivation
    
    The scope of some dependencies of the plugin camel-bundle-plugin should be 
`provided` instead of `compile` which causes an error message in the build log 
that should be fixed.
    
    ## Modifications
    
    * Forces the scope of the problematic dependencies by adding them 
explicitly as dependencies of the plugin
    
    ## Result
    
    The error message is absent from the build log
---
 init/camel-bundle-plugin/pom.xml | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/init/camel-bundle-plugin/pom.xml b/init/camel-bundle-plugin/pom.xml
index 589c3063ad9..cb806bef7db 100644
--- a/init/camel-bundle-plugin/pom.xml
+++ b/init/camel-bundle-plugin/pom.xml
@@ -38,6 +38,7 @@
         <sourcecheckExcludesComma>
             **/*.java,
         </sourcecheckExcludesComma>
+        <maven-version>3.3.9</maven-version>
     </properties>
 
     <dependencies>
@@ -46,7 +47,30 @@
             <artifactId>maven-bundle-plugin</artifactId>
             <version>${maven-bundle-plugin-version}</version>
         </dependency>
-
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-core</artifactId>
+            <version>${maven-version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-compat</artifactId>
+            <version>${maven-version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-model</artifactId>
+            <version>${maven-version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-artifact</artifactId>
+            <version>${maven-version}</version>
+            <scope>provided</scope>
+        </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>

Reply via email to