How to unpack files using maven?
Using maven, I am downloading cookbooks.
The resulting files are in a format .tgz
and I want to unpack them. How can i do this? Is there any useful plugin out there?
+3
Riduidel
source
to share
2 answers
From what I know, .tgz can be unpacked using two commands:
gzip -d file.tgz
tar xvf file.tar
Thus, you can use the maven-antrun-plugin to accomplish these two tasks:
<gunzip src="tools.tgz"/>
<untar src="tools.tar" dest="${tools.home}"/>
Ant task assignment: gunzip and untar
+5
Jintian DENG
source
to share
I would suggest using truezip-maven-plugin to handle such archives.
+1
khmarbaise
source
to share