如何在Apache Camel项目中导入Mongo DB驱动程序依赖项?

时间:2019-02-15 06:20:20

标签: java mongodb maven

我已经在项目中导入了Maven依赖项

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongo-java-driver</artifactId>
    <version>3.10.1</version>
</dependency>


<configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <Export-Package>com.born*;version=${project.version}</Export-Package>
                        <Import-Package>!com.born*;*</Import-Package>
                        <Embed-Dependency>oktopus-integration,commons-lang,jaxws-api,json</Embed-Dependency>
                    </instructions>
                </configuration>

导入的软件包com.mongodb,version = [3.10,4)-无法解析 com.mongodb.client,version = [3.10,4)-无法解决

0 个答案:

没有答案