Hi Ste, I'm not sure how to get a s4j extension. You could rename the file, but then it wouldn't be an attached artifact, so things like deploy would break.
To get rid of the top-level directory, put this in your assembly descriptor: <includeBaseDirectory>false</includeBaseDirectory> Paul Stefano Nichele-2 wrote: > > Hi All, > I have a problem with the assembly plug-in. > My project builds a war application but the output should be a zip file > with the following structure: > > /webapp/ > myapp.war > /config > configFile1.xml > configFile2.xml > configFile3.xml > > I'm using the following assembly descriptor: > > <assembly> > <id>bin</id> > <formats> > <format>zip</format> > </formats> > > <fileSets> > <fileSet> > <directory>src/main/resources/bean</directory> > <outputDirectory>config</outputDirectory> > <includes> > <include>**/*.*</include> > </includes> > </fileSet> > > <fileSet> > <directory>target</directory> > <outputDirectory>webapp</outputDirectory> > <includes> > <include>*.war</include> > </includes> > </fileSet> > </fileSets> > </assembly> > > Using that descriptor, the output file is a zip file but i need a > different extension. I mean, I need a zip file (as format) with > extension "s4j". > > How can i do to obtain that ? > > Moreover, using the above descriptor I obtain a zip file that contains: > > /myartifactid > /webapp > myapp.war > /config > *.xml > > How can I remove the first level "myartifactid" ? > > Thanks in advance. > Ste > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Assembly-plugin---packaging-chaning-the-extension-tf2584876s177.html#a7328439 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]