I am using the maven-dependency-plugin to specify some artifacts for download. I know from the artifact the Group ID, the Artifact ID and the Version. The plugin itself will find it “somewhere”.
Example (shorten):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.9</version>
<executions>
. . .
<artifactItem>
<groupId>${GROUPID}</groupId>
<artifactId>${ARTIFACTID}</artifactId>
<version>${APP_VERSION}</version>
<outputDirectory>../target/content/</outputDirectory>
<destFileName>${GROUPID}-${APP_VERSION}.zip.wrap</destFileName>
<type>zip</type>
</artifactItem>
. . .
It works and show me on the (std) output the message:
[INFO] --- maven-dependency-plugin:2.9:unpack (copy)
[INFO] Configured Artifact: com.s. . .:1.1.2:zip
Downloading: http://nexus:8081/nexus/content/groups/build.snapshots/ com/s.../1.1.2/...-1.1.2.zip
Downloaded: http://nexus:8081/nexus/content/groups/build.snapshots/com/s.../1.1.2/...-1.1.2.zip (77480 KB at 1721.5 KB/sec)
Do I have the possibility to get the used download URL within my pom file? I want to echo the used URL for downloading in a separate file. Do you have a hint for me?
Thank you. Dennis