简体   繁体   中英

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. My problem is that Maven complains that the package is not there while building the project. I have removed the jar and tried to rebuild, with no change though. Any help, I am stuck!

Author of Hyperjaxb3 here.

You need hyperjaxb3-ejb-runtime in the compile scope as well. In some cases JAXB structures are not directly compatible with JPA, so HJ3 has to wrap them or otherwise work around incompatibilities. In these cases you may need hyperjaxb3-ejb-runtime . Maybe not, if your schema is 100% JPA-compilant. Just use the compile scope. The runtime in the artifact name has nothing to do with Maven scopes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM