Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#334 Allow ~ in dependency dir (related to Maven)

open
5
2011-08-05
2011-08-05
Ernst de Haan
No

Currently we are looking at integrating XINS with Maven. Maven does the automatic dependency resolution and stores the artifacts under the ~/.m2/repository/.

I would like to use those artifacts (JAR files), so I'm trying to reference them from the impl.xml with a <dependency> tag like this:

<dependency dir="~/.m2/repository/net/sourceforge/javacsv/javacsv/2.1" includes="javacsv-2.1.jar" />

This does not work, because XINS does not recognize "~" as a reference to the home directory. However, I don't want to hardcode a path there.

Could ~ be supported in the <dependency> "dir" attribute? Or perhaps you can suggest a better solution?

Discussion

  • Ernst de Haan
    Ernst de Haan
    2011-08-06

    I have found a work-around, which is to first copy all the files to a directory that can be addressed relatively to the project basedir.