我正在嘗試構建一個大型項目並因以下錯誤而失敗:
[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
我找到並下載了 cglib-nodep-2.1_3的.jar
</代碼>結果 由於我缺乏maven的經驗,我不確定如何(hrr
...)使構建過程使用此文件而不是失敗(我猜)從互聯網上獲取它。