Fenn-CS
Fenn-CS

Reputation: 907

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

Upvotes: 0

Views: 2890

Answers (1)

Inian
Inian

Reputation: 85865

Change your pom.xml to to reflect the same path is in $HOME environment variable which has your absolute home directory path.

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

Upvotes: 1

Related Questions