Using maven, I download some Chef cookbooks.
Received files are in the .tgz
format, and I want to unpack them. How can I do that ? Is there any useful plugin ?
From what I know, .tgz can be unpack via two commands:
gzip -d file.tgz
tar xvf file.tar
So you can use maven-antrun-plugin to execute these two tasks:
<gunzip src="tools.tgz"/>
<untar src="tools.tar" dest="${tools.home}"/>
I would suggest to use the truezip-maven-plugin to handle such archives.