我想解決所有依賴關係,使我可以從命令提示符運行此jar的單個jar。我使用Maven的assembly:single
但每當我這樣做,我得到一個問題maven程序集:單個不解決依賴關係
[ERROR] com.XXX.XXXX.XXX:XXX-XXX-XXX:jar:XXX
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] A (http://XXXXX/, releases=true, snapshots=true),
[ERROR] B (http://XXXX/, releases=true, snapshots=true),
[ERROR] C (https://repo.maven.apache.org/maven2/, releases=true, snapshots=true
),
[ERROR] D (https://XXXXX, releases=false, snapshots=true)
[ERROR] Path to dependency:
[ERROR] 1) com.test.Report:myjar:jar:0.0.1-SNAPSHOT
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
這是我與 工作POM現在這些瓶子都已經解決,並且存在於Maven的依賴文件夾中。我可以從Eclipse運行整個項目,但需要將此jar包含到包含所有jar的客戶端。任何幫助表示讚賞。謝謝:)
從命令調用那種方式沒有依賴關係解析... – khmarbaise