In order to get a file I can use the following dependency
<dependencies>
<dependency>
<groupId>some group</groupId>
<artifactId>art</artifactId>
<version>1</version>
<type>some type</type>
<scope>system</scope>
<systemPath>path to file</systemPath>
</dependency>
</dependencies>
What can I do in order to get a directory?
Maven works with jar dependencies. It appears you want to create and use your own local repository.
Please refer How do I Create a Jar And Install It In My Local Repository from Maven Docs.
Hope it helps.