I have an ant script which produces a custom version of tomcat for use on my servers. This ant script does the following:
- unzip a pristine copy of a tomcat .zip file
- delete a bunch of files that are not used
- Add a bunch of jars to the tomcat\lib folder like database drivers and others
- zip it all back up into a zip file
I noticed that there is an ant run plugin for maven at http://maven.apache.org/plugins/maven-antrun-plugin/ but the documentation indicates that this ant run plugin should be used sparingly.
What maven plugins are available for doing basic file io operations such as copy, unzip, delete, rename, move, zip, … etc?
For unzipping a file the best solution is to use the maven-dependency-plugin furthermore for packaging an archive like zip you can use the maven-assembly-plugin