This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new 159beeb85c9 CAMEL-18405: OSGi temporary fix for camel-file private 
package problem in 3.18.x
159beeb85c9 is described below

commit 159beeb85c9fcc7547c15a41acd8386fc16c5e77
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Aug 28 21:27:39 2022 +0200

    CAMEL-18405: OSGi temporary fix for camel-file private package problem in 
3.18.x
---
 components/camel-file/pom.xml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/components/camel-file/pom.xml b/components/camel-file/pom.xml
index 3edcbe734a7..bfe4c1f15ed 100644
--- a/components/camel-file/pom.xml
+++ b/components/camel-file/pom.xml
@@ -45,4 +45,30 @@
         </dependency>
 
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>fix-osgi</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <replace token= "Private-Package: 
org.apache.camel.resume" value="Private-Package: !*" dir="target/classes">
+                                    <include name="**/MANIFEST.MF"/>
+                                </replace>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>

Reply via email to