[英]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.