That worked like a charm, thanks Michael! Best regards,
Richard -----Original Message----- From: Michael-O [mailto:[email protected]] Sent: Wednesday, September 11, 2013 1:43 AM To: Maven Users List Subject: Re: need filesystem-level operations in assembly plugin Am 2013-09-11 07:12, schrieb Richard Sand: > Hi all - I'm using maven-assembly-plugin to create zip distributions > of our web application. It takes in the Apache Tomcat zip artifact, > and the war artifact for the app, and creates an assembly. > > There are a couple of file operations I haven't figured out how to do yet. > For example, Tomcat unzips to a folder called "apache-tomcat-7.0.42", > which I want to rename to just "tomcat". I figured id use the exec > plugin to fork a "rm" command, which I guess will work in theory but > seems shoddy. > > Does anyone support having some "swiss army knife" file manipulation > capabilities (at least rename & move) in the assembly plugin? If you intend to rebundle Tomcat, use the dependency plugin which will unpack [1] the zip in target and then you can readd it to your assembly. Michael [1] http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
