简体   繁体   中英

How to write path in pom.xml maven file for unix based system

I am following a maven tutorial and the tutor is using windows while am using linux in his example theres a line in the pom.xml as such

<files.repository.name>C:\\Sigmah\\files\\sigmah_dev</files.repository.name>

For me on ubuntu I have the same files in this directory ~/sigmah/files/sigmah_dev

So I modified the pom.xml file as such

<files.repository.name>~/sigmah/files/sigmah_dev</files.repository.name>

But I still get a maven error complaining this directory does not exist. Please what am I doing wrong

更改pom.xml以反映$HOME环境变量中的相同路径,该环境变量具有您的绝对主目录路径。

<files.repository.name>/home/fenn/sigmah/files/sigmah_dev</files.repository.name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM