原创

netty源码编译错误

Failure to find io.netty:netty-tcnative:jar:${os.detected.classifier}:2.0.7.Final in

详细信息如下:

Failure to find io.netty:netty-tcnative:jar:${os.detected.classifier}:2.0.7.Final in http://mvn.com/libs-releases
 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

根据错误信息可以看出来是缺少os.detected.classifier属性所致,经过排查发现这个属性不是操作系统自身的属性,因此就需要使用-D传入,具体可以参考:

https://github.com/trustin/os-maven-plugin

因此根据上面链接拼接出你自己的操作系统的标志即可,我的是:

mvn  package -DskipTests  -Dos.detected.classifier=osx-x86_64

这个应该是Netty中一些平台相关的内容需要所致。

netty-common: Failed during checkstyle execution

详细信息如下

 Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.12.1:check (check-style) on project netty-common: Failed during checkstyle execution

可以跳过checkstyle检查和在pom中禁用

 <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-checkstyle-plugin</artifactId>
    <executions>
        <execution>
            <id>checkstyle-validation</id>
            <phase>none</phase>
        </execution>
    </executions>
 </plugin>
 或者
 mvn [YOUR_COMMAND] -Dcheckstyle.skip
正文到此结束
本文目录