I got Java module and structure looks like:
moduleX
-resources
|-icons
|_ icon.png
|-libs
|_ library.jar
-src
pom.xml
resources
is a folder mark as Resources Root in Intellij IDEA.
How should looks Maven dependency to get the library.jar
?
I tried as
<dependency>
<groupId>library</groupId>
<artifactId>library</artifactId>
<version1.0</version>
<scope>system</scope>
<systemPath>${basedir}/resources/libs/library.jar</systemPath>
</dependency>
On OS X system works well but on Windows system do not work - do not find path.
Also I have set up a resources in pom.xml
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
</build>