【发布时间】:2016-12-13 04:47:44
【问题描述】:
我尝试在 FUSE 中开发简单的 Hibernate 集成应用程序,但找不到可以参考的好的参考文档。我已经通过 official documentation 关于 Hibernate 集成但无法正确安装依赖项。
我注意到应该在骆驼上下文文件中配置休眠,但不幸的是,当我添加这种配置时,我遇到了以下错误。当我尝试将我的应用安装到 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)))]
但我检查了 org.springframework.dao 没有可用的 3.0.5 版本。根据this post,它仅可用 2.0.8 。请有人解释如何解决这个问题?
以下是我的pom中与Hibernate相关的依赖(${spring-version}== 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>
【问题讨论】:
标签: java spring hibernate maven jbossfuse