[英]How to write path in pom.xml maven file for unix based system
我正在遵循一個maven教程,並且在他的示例中使用linux時,導師正在使用Windows,而在pom.xml中這樣一行
<files.repository.name>C:\\Sigmah\\files\\sigmah_dev</files.repository.name>
對於我在ubuntu上,我在此目錄〜/ sigmah / files / sigmah_dev中具有相同的文件
所以我這樣修改了pom.xml文件
<files.repository.name>~/sigmah/files/sigmah_dev</files.repository.name>
但是我仍然收到一個maven錯誤,抱怨該目錄不存在。 請問我在做什么錯
更改pom.xml
以反映$HOME
環境變量中的相同路徑,該環境變量具有您的絕對主目錄路徑。
<files.repository.name>/home/fenn/sigmah/files/sigmah_dev</files.repository.name>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.