我試圖建立一個大型項目,並與下面的錯誤而失敗:Maven的 - 無法解析神器 - CGLIB:CGLIB的節點p:罐子:空
[INFO] ------------------------------------------------------------------------
[INFO] Building Utilities
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1255 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 16 resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Couldn't find a version in [2.2.2] to match range [2.1_3,2.1_3]
cglib:cglib-nodep:jar:null
from the specified remote repositories:
java.net (http://download.java.net/maven/2),
internal (http://repo.some-project.org/maven),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) org.some-project:util:jar:1.5.0
我found和下載cglib-nodep-2.1_3.jar
作爲我缺乏maven的經驗,我不知道如何(hrr ...)使構建過程使用這個文件,而不是失敗(我猜)從互聯網上獲取它。
確定嗎?我能夠找到它:http://search.maven.org/remotecontent?filepath=cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar無論如何,如果2.2.2適合你,那就是很棒:) – Tarlog 2011-05-23 06:32:48
@Tarlog - 對於我在項目中所有數以百計的依賴關係中,始終沒有發現只有這一個 – Jonathan 2011-05-25 09:59:42
@Tarlog - 2.2.2沒有爲我工作,我不得不手動安裝2.1_3本地:) – Jonathan 2011-05-25 10:00:38