[英]COMPILATION ERROR : package org.jvnet.hyperjaxb3.item does not exist
I am using the following dependency in my project 我在项目中使用以下依赖项
<dependency>
<groupId>org.jvnet.hyperjaxb3</groupId>
<artifactId>hyperjaxb3-ejb-runtime</artifactId>
<version>0.6.0</version>
<scope>runtime</scope>
</dependency>
and I see the package org.jvnet.hyperjaxb3.item under the jar hyperjaxb3-ejb-runtime-060.jar in my maven dependencies for the project. 我在项目的Maven依赖项中的jar hyperjaxb3-ejb-runtime-060.jar下看到了org.jvnet.hyperjaxb3.item包。 My problem is that Maven complains that the package is not there while building the project. 我的问题是Maven抱怨在构建项目时该软件包不存在。 I have removed the jar and tried to rebuild, with no change though. 我删除了罐子并尝试重建,尽管没有任何变化。 Any help, I am stuck! 任何帮助,我都卡住了!
Author of Hyperjaxb3 here. Hyperjaxb3的作者在这里。
You need hyperjaxb3-ejb-runtime
in the compile
scope as well. 您还需要在compile
范围内hyperjaxb3-ejb-runtime
。 In some cases JAXB structures are not directly compatible with JPA, so HJ3 has to wrap them or otherwise work around incompatibilities. 在某些情况下,JAXB结构与JPA不直接兼容,因此HJ3必须包装它们或以其他方式解决不兼容问题。 In these cases you may need hyperjaxb3-ejb-runtime
. 在这些情况下,您可能需要hyperjaxb3-ejb-runtime
。 Maybe not, if your schema is 100% JPA-compilant. 如果您的架构是100%JPA编译的,则可能不是。 Just use the compile
scope. 只需使用compile
范围。 The runtime
in the artifact name has nothing to do with Maven scopes. 工件名称中的runtime
与Maven范围无关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.