On Fri, Oct 30, 2009 at 6:29 PM, Sony Antony <[email protected]> wrote: > Im fairly new to maven. > Tried getting answers to these from books and google. Trying my luch here > > 1. can I add more custom phases to the 23 already defined ( > http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference > ) > ( - I read that phases are already hard coded in a file called > components.xml which is used at compile time. This seemed to imply that I > cannot ad/change to teh list of existing phases. > On teh other hand I read that phases can be added by using <extensions> ( > needs a custom plugin/mojo to be written )
Adding phases is not the right way to go. Adding new plugin bindings to the correct phases is the right way. > > 2. Is it possible to turn off a particular phase from being fired for an > already given packaging ( say jar : Can I turn off test phase - [ Im aware > of skip.test=true. My question was more general ] ) > 3. Is it possible to turn off a plugin from being fired for a particular > phase. > For a predefined packaging type, no you can't unbind things. Some plugins have skip flags or ways to neuter them, but they still run > > 4. If I have an ant task that requires a <taskdef>, which is teh preferred > way to provide the class file that implements the task : > - As a plugin dependency ? > Yes. Add it as a dependency element inside the plugin section of your pom. > 5. In general I noticed that antrun was slow. Was this something in our > environment. Or is it known to be slow in general > unknown. > Thank you very much. > > --sony > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
