Context
I am using the maven plugin Fabric8 to build a docker container during my integration tests. One of my maven dependencies has a Dockerfile in its src/main/resources folder.
I would like to refer to that Dockerfile in the build phase of the plugin's image configuration.
In Intellij I can see the Dockerfile in the External Libraries section.
Maven: com.example.project:myartifact:1.0-SNAPSHOT
myartifact-1.0-SNAPSHOT.jar
container-dir
Dockerfile
Question
How do I refer to a file in an External Library / Maven Dependency?
In other words, what is the relative path to a mvn project's dependency files?
Other Info
Where it is in the code:
<configuration>
<images>
<image>
<alias>database</alias>
<name>container-name</name>
<build>
<dockerFileDir>?????</dockerFileDir>
</build>
I have seen this question: Reading a resource file from within jar but this only answer the question for how to refer to the file within Java but not with Maven itself.