|
Extract_Artifact_From_Downloaded_File
DetailsIf you need to resolve, install, and deploy an artifact that is located inside a compressed ZIP file then specify the ZIP file as the download URL and then include the < extractFile > property on the < artifactItem >. As of 0.5-SNAPSHOT, these additional compression formats are supported: bzip2, dir, gzip, tar, tgz, tar.gz, tbz2, tar.bz2 The < extractFile > property should be the name of the file (exact match, case-sensitive) inside the ZIP file. If the file to extract is nested inside one or more folders in the ZIP file, then specify the full path and file name. (ie. root/parent/file.ext) See the artifact item example below:
<!-- HERE IS AN EXAMPLE OF AN ARTIFACT
EXTRACTED FROM A ZIP FILE -->
<artifactItem>
<groupId>com.google.code</groupId>
<artifactId>tweener</artifactId>
<version>1.33.74</version>
<packaging>swc</packaging>
<downloadUrl>
http://tweener.googlecode.com/files/tweener_1_33_74_as3_swc.zip
</downloadUrl>
<extractFile>tweener.swc</extractFile>
</artifactItem>
(..as of version 0.3)
<!-- DIFFERENT CHECKSUMS FOR DOWNLOAD FILE AND EXTRACTED FILE -->
<artifactItem>
<groupId>de.innosystec</groupId>
<artifactId>java-unrar</artifactId>
<version>0.3</version>
<packaging>jar</packaging>
<downloadUrl>
http://github.com/downloads/edmund-wagner/junrar/java-unrar-{version}.zip
</downloadUrl>
<checksum>530351609180152cff40fa1c79a28193185aba83</checksum> <!-- this checksum is applied to the download file -->
<install>true</install>
<force>false</force>
<extractFile>java-unrar/java-unrar-{version}.jar</extractFile>
<extractFileChecksum>bce51f76274c41ddac3ca8e99378ff2893108049</extractFileChecksum> <!-- this checksum is applied to the extracted file -->
</artifactItem>
Please visit this link for a complete example of a POM file configured for this this plugin: |