我想測試一些最新的功能位於github的netty主分支。 (git://github.com/netty/netty.git
)錯誤編譯Netty最新(主)版本
我做以下步驟:
- 打開新的空目錄,我的本地機器上
- 類型
git init
- 類型
git pull git://github.com/netty/netty.git
- 編譯的pom.xml使用maven作爲如下:
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
您能否請告知我做錯了什麼。
我沒有看到這樣的錯誤,當我嘗試它。它以失敗告終,但不是因爲編譯錯誤,因爲在你的情況下。我看到的失敗在_unit tests_中。我使用Maven 3.0.3和Java 6.一個小方面的注意事項:下載和構建netty的慣用方法是簡單地:'git clone git:// github.com/netty/netty.git'。你不必'git init'和'git pull'。 – 2012-01-08 11:41:47
你對git是正確的!關於如何編譯最新版本的任何其他想法? – 2012-01-08 13:06:15