【发布时间】:2012-01-09 03:12:07
【问题描述】:
我想测试一些位于 github 的 netty Master 分支中的最新功能。
(git://github.com/netty/netty.git)
我正在执行以下步骤:
- 在我的本地机器上打开新的空目录
- 输入
git init - 输入
git pull git://github.com/netty/netty.git - 使用maven编译pom.xml如下:
mvn clean package
我现在收到以下编译错误:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.855s
[INFO] Finished at: Sun Jan 08 12:14:21 IST 2012
[INFO] Final Memory: 16M/176M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project netty: Compilation failure: Compilation
failure:
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[655,61] type parameters of <E>E cannot be determined; no uniqu
e maximal instance exists for type variable E with upper bounds E,java.lang.Object
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[739,53] type parameters of <E>E cannot be determined; no uniqu
e maximal instance exists for type variable E with upper bounds E,java.lang.Object
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[827,57] type parameters of <E>E cannot be determined; no uniqu
e maximal instance exists for type variable E with upper bounds E,java.lang.Object
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[880,65] type parameters of <E>E cannot be determined; no uniqu
e maximal instance exists for type variable E with upper bounds E,java.lang.Object
你能告诉我我做错了什么吗?
【问题讨论】:
-
我尝试的时候没有看到这样的错误。它以失败告终,但不是因为您的情况下的编译错误。我看到的失败是在 单元测试 中。我正在使用带有 Java 6 的 Maven 3.0.3。一个小提示:下载和构建 netty 的惯用方法是:
git clone git://github.com/netty/netty.git。您不必git init和git pull。 -
你对 git 的看法是正确的!!!关于如何编译最新版本的任何其他想法?