ClassNotFoundException:找不到io.netty.handler.codec.http.HttpRequest

ClassNotFoundException:找不到io.netty.handler.codec.http.HttpRequest,http,httprequest,netty,handler,Http,Httprequest,Netty,Handler,我的pom.xml中有以下依赖项 <dependency> <groupId>io.netty</groupId> <artifactId>netty-buffer</artifactId> </dependency> <dependency> <groupId>io.netty</grou

我的pom.xml中有以下依赖项

 <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-buffer</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-transport</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-handler</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-http</artifactId>
        </dependency>

伊奥·内蒂
网状缓冲器
伊奥·内蒂
网状运输
伊奥·内蒂
内蒂处理程序
伊奥·内蒂
netty编解码器
伊奥·内蒂
netty编解码器http
当执行包时,它仍然会给出上述CNF异常。我甚至试着在下面添加依赖项。仍然不起作用。你知道怎么解决吗

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-all</artifactId>
    <version>4.0.30.Final</version>
    </dependency>

伊奥·内蒂
讨厌的
4.0.30.1决赛

您是如何执行最终产品的?如果是OSGI,那么您在POM中的作用域不好(应该提供,而不是编译),或者在包启动过程中导入时出现问题。检查包的清单如果您使用netbeans,您是否已尝试重新启动该块?;)Netbeans有时只是不想找到依赖项。您是如何执行最终产品的?如果是OSGI,那么您在POM中的作用域不好(应该提供,而不是编译),或者在bundle启动期间您应该在导入方面有问题。如果您使用Netbeans,请检查bundle的清单,你已经试过重新启动那一块了吗?;)Netbeans有时只是不想找到依赖项。