This is my gmaven script, which is trying to find and load a file located somewhere inside the provided dependency (it's a section of pom.xml
):
[...]
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<configuration>
<source>
<![CDATA[
def File = // how to get my-file.txt?
]]>
</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>my-group</groupId>
<artifactId>my-artifact</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
[...]
The my-file.txt
is located in my-group:my-artifact:1.0
JAR file.
The answer is very simple:
Then the URL will be in the following format:
The rest is trivial.