|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Some maven questionsIm 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 ) 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. 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 ? 5. In general I noticed that antrun was slow. Was this something in our environment. Or is it known to be slow in general Thank you very much. --sony |
|
|
Re: Some maven questionsOn Fri, Oct 30, 2009 at 3:29 PM, Sony Antony <sony.antony@...> wrote:
> Im fairly new to maven. > Tried getting answers to these from books and google. Trying my luch here You'll probably get better answers if you start a separate thread with a descriptive subject for each of your questions. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Some maven questionsOn Fri, Oct 30, 2009 at 6:29 PM, Sony Antony <sony.antony@...> 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: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |