How to write java program (mojo) to unzip folders in specific location?
I’m new to maven if anyone help me highly appreciate.
/**
* The Zip archiver.
* @parameter \
expression="${component.org.codehaus.plexus.archiver.Archiver#zip}"
*/
private ZipArchiver zipArchiver;
/**
* Directory containing the build files.
* @parameter expression="${project.build.directory}/Test"
*/
private File buildDirectory;
/**
* Base directory of the project.
* @parameter expression="${basedir}"
*/
private File baseDirectory;
You can either use the maven-dependency-plugin like this:
Or you can use the truezip-maven-plugin like the following: