我尝试在FUSE中开发简单的Hibernate集成应用程序,但无法找到我可以遵循的很好的参考文档。我已经通过关于Hibernate集成的official documentation,但无法正确安装依赖关系。JBoss Fuse Hibernate集成
我注意到hibernate应该配置在camel-context文件中,但不幸的是当我添加这种配置时,我得到了下面的错误。当我尝试将我的应用程序安装到Fuse中时。
Error executing command: Error installing bundles:
Unable to start bundle mvn:com.activemq.cxf/activemq/1.0.0-SNAPSHOT: Unresolved constraint in bundle DemoActiveMq1 [416]: Unable to resolve 416.0: missing requirement [416.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.orm.hibernate3)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve 415.0: missing requirement [415.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.dao)(version>=3.0.5)(!(version>=3.0.6)))]
但我检查没有版本3.0.5供的org.springframework.dao。根据this post,它仅适用于2.0.8。请解释一下如何解决这个问题?
以下是我的POM休眠($ {春季版} == 3.0.5.RELEASE)
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-dao</artifactId>
<version>2.0.8</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring-version}</version>
</dependency>