You could configure the default command line execution. The following section provides an example with the Assembly plugin. Use the execution id "default-cli"
http://www.sonatype.com/books/mvnref-book/reference/configuring.html#d4e3735 Also, apologies for the assembly chapter, it needs some work. On Fri, Apr 16, 2010 at 9:28 PM, leroybrownbpj <[email protected]> wrote: > > Hi, > > (...I apologize if this ends up being a duplicate post, but it seems like I > screwed up the first one...) > > I have a project that I will be distributing as a package of source/poms etc > (the 'project' id in assembly). There doesn't seem to be a way to customize > the 'project' assembly descriptor to exclude some files I need to from the > client pom.xml, so I need to run a custom assembly descriptor but I've run > into an issue. > > This descriptor will be used by many poms, and I do not want to include it > in my distribution. I've been following the directions in pages 252-255 of > the Sonatype/O'Reilly "Maven: The Definitive guide" first edition paper back > (this is maven 2.2) and I now have a custom descriptor installed such that I > can use it when it is configured as a maven-assembly-plugin dependency, the > appropriate assemblyId is specified as a descriptorRef in that pom and the > assembly:single goal is attached to the package phase. > > How can I call the mvn assembly:assembly goal on a project from the command > line, specifying this custom descriptor, without including references to it > in a project's pom so that these project's builds will not fail when run by > the recipients of my distribution? Generally, how do you use a custom > assembly descriptor from the command line without adding it as an assembly > plugin dependency to the target project's pom? > > Thank you. > -- > View this message in context: > http://old.nabble.com/Using-custom-assembly-descriptor-from-the-command-line-tp28273687p28273687.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]
