camel-commits mailing list archives

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

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


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

commit a13bb2995f3f61d7261c2b20ee2ecf484599a06c
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Tue May 28 11:43:56 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 bef1f01..75a3989 100644
--- a/components/camel-mail/pom.xml
+++ b/components/camel-mail/pom.xml
@@ -137,6 +137,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>
 


Mime
View raw message