I am developing my own custom Maven plugin and I want to archive the files. I followd that example: http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-mojo-params.html and could archive the elements with zip format. However I want to use other formats too(user will indicate it) how can I set archive type?
ZipArchiver works like that: /** * The Zip archiver. * @parameter \ expression="${component.org.codehaus.plexus.archiver.Archiver#zip}" */ private ZipArchiver zipArchiver; ... zipArchiver.addDirectory( buildDirectory, includes, excludes ); zipArchiver.setDestFile( new File( baseDirectory, "output.zip" ) ); zipArchiver.createArchive(); -- View this message in context: http://maven.40175.n5.nabble.com/Custom-Maven-Plugin-Development-Archiving-Files-tp5747036.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org