[英]Maven Dependency execution directory
這是有關運行時Maven的問題。
場景:
客戶端Maven項目取決於我的模塊(ModuleA)
結果 :ModuleA及其傳遞依賴項已下載到客戶端Maven Repo中。 正確?
客戶端maven項目是使用Jenkins構建的。
在Jenkins maven構建的階段,客戶端maven項目調用ModuleA.DoSomethingUseful()
結果是什么:
System.out.println(String.format("Current Path: %s", SomeClassinModuleA.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()))?
它會在Jenkins工作區下還是在Jenkins盒子上的Maven倉庫下?
事實證明這是在Maven存儲庫中,而不是Jenkins工作區中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.