You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ff...@apache.org on 2019/05/28 15:46:04 UTC
[camel] branch camel-2.22.x updated: [CAMEL-13593]avoid “expected resource not found” warnings when using camel-mail in OSGi
This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch camel-2.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.22.x by this push:
new 59a8bee [CAMEL-13593]avoid “expected resource not found” warnings when using camel-mail in OSGi
59a8bee is described below
commit 59a8bee0ee6a889ed3505ad59fbaa8a14095ea83
Author: Freeman Fang <fr...@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
(cherry picked from commit a13bb2995f3f61d7261c2b20ee2ecf484599a06c)
(cherry picked from commit a2e8be7f61963d907b682e33f4704d69d56c3491)
(cherry picked from commit 7a4fedca83722b37a42e9b81ae7d4bb9f947a3e8)
---
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 5a29d68..b37e1de 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>