我组装了bundle并希望在servicemix中运行它。 我为maven使用camel-mail,apache servicemix和apache felix插件。 我试试:
236 | Installed | 80 | 1.0 | camel-mail-test
karaf@root>bundle:start 236
但是,我错了:
Caused by: org.apache.camel.ResolveEndpointFailedException:
Failed to resolve endpoint: imaps://imap.gmail.com?
consumer.delay=60000&delete=false
&password=***%24a&unseen=true&username=***%40gmail.com
due to: No component found with scheme: imaps
我的pom.xml
个依赖关系:
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-mail</artifactId>
<version>2.16.3</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-osgi</artifactId>
<version>2.16.3</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>6.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>osgi-bundle</id>
<goals>
<goal>bundle</goal>
</goals>
<phase>package</phase>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>1.0</Bundle-Version>
<Bundle-Activator>Main</Bundle-Activator>
<Import-Package>
*;resolution:=optional
</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Servicemix捆绑所有已安装的:
karaf@root>la | grep camel
43 | Active | 50 | 2.16.3 | camel-core
226 | Active | 50 | 2.16.3 | camel-mail
228 | Active | 80 | 2.16.3 | camel-core-osgi
karaf@root>la | grep osgi
228 | Active | 80 | 2.16.3 | camel-core-osgi
可能是错误的原因是什么?请帮忙