How can I specify the main resource directory in Maven as a File? I'm using ${project.resources[0]}
, but that is a org.apache.maven.model.Resource
, whereas I need a java.io.File
.
I need this for usage in the rpm-maven-plugin:
<mapping>
<directory>${app.home}/cfg</directory>
<sources>
<source>
<location>${project.resources[0]}</location>
</source>
</sources>
</mapping>