camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [camel] branch master updated: [CAMEL-13593]avoid “expected resource not found” warnings when using camel-mail in OSGi
Date Tue, 28 May 2019 14:49:59 GMT
This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 36cdd36  [CAMEL-13593]avoid “expected resource not found” warnings when using
camel-mail in OSGi
36cdd36 is described below

commit 36cdd36c715e159923a31b49aa6f5adcf77b8fb5
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Tue May 28 10:49:48 2019 -0400

    [CAMEL-13593]avoid “expected resource not found” warnings when using camel-mail in
OSGi
---
 components/camel-mail/pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/components/camel-mail/pom.xml b/components/camel-mail/pom.xml
index a0621f5..4f6d253 100644
--- a/components/camel-mail/pom.xml
+++ b/components/camel-mail/pom.xml
@@ -123,6 +123,35 @@
                     <argLine>-Dfile.encoding=UTF-8</argLine>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <artifactSet>
+                                <includes>
+                                    <include>com.sun.mail:javax.mail</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>com.sun.mail:javax.mail</artifact>
+                                    <includes>
+                                        <include>META-INF/javamail.default.address.map</include>
+                                        <include>META-INF/javamail.default.providers</include>
+                                    </includes>
+                                </filter>
+                            </filters>
+                            <minimizeJar>true</minimizeJar>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>


Mime
View raw message