【发布时间】:2014-05-28 00:22:47
【问题描述】:
我尝试通过 Camel 从 gmail 帐户获取一些邮件:
Endpoint fromMail = endpoint("imaps://imap.gmail.com?username=xxx@gmail.com&password=xxx&fetchSize=1&searchTerm.subjectOrBody=OrderNr&unseen=true&consumer.delay=60000");
但我得到了这个例外:
Exception in thread "main" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: imaps://imap.gmail.com:993?consumer.delay=60000&fetchSize=1&password=xxx&searchTerm.subjectOrBody=OrderNr&unseen=true&username=xxx%40gmail.com due to: No component found with scheme: imaps
当然,我的 pom.xml 中有 camel-mail,而我的 Maven 依赖项中有 camel-mail-2.13.0.jar。
有趣:在另一台电脑上,完全相同的代码(相同的项目)可以正常工作。
为什么我的电脑会出现这个异常?
【问题讨论】: