You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Laurie Harper <zo...@holoweb.net> on 2003/10/10 04:55:41 UTC

restricting maven -g

Maven's coming along fast! :-) The trouble is, now 'maven -g' produces a 
somewhat overwhelming amount of options. Is there any way to constrain 
the output to only list I expect my co-developers to care about?

L.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: restricting maven -g

Posted by khote <kh...@mminternet.com>.
Oops, let me re-state that:

message.help = \n\n
=================================\n\
This is a multiline help message \n\
and you have to do the \n\
stuff to get newlines.\n\
==================================\n

You have to include the "\n" prior to the line-extension or it will just
come out without them.

----- Original Message ----- 
From: "khote" <kh...@mminternet.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, October 21, 2003 1:55 PM
Subject: Re: restricting maven -g


> I wrote a file called message.properties
> Up near the top of my maven.xml, prior to any <goal> being executed:
>
>   <util:properties file="message.properties"    trim="true"/>
>
> which contains various helps, including a general help message:
>
> message.help = This is a help message \
> that takes place over multiple lines \
> etc.
>
> Then I create a
> <goal name="help">
>   <echo message="${message.help}"/>
> </goal>
>
> in my maven.xml, this seems to do for me.
> It's not at all like ant -projecthelp, you have to maintain it yourself,
but
> it does give me the functionality I want.
>
> ----- Original Message ----- 
> From: "Laurie Harper" <zo...@holoweb.net>
> To: <us...@maven.apache.org>
> Sent: Tuesday, October 21, 2003 1:52 PM
> Subject: Re: restricting maven -g
>
>
> > Sorry for the slow response, I was on vacation! I understand I can get
> > Maven not provide so much functionality :-) but that's not quite what I
> > was looking for. When someone checks out my source tree, I want them to
> > be able to get the equivalent of 'ant -projecthelp' or something:
> > essentially, I want them to see a list of 'what targets are specifically
> > of interest for this project?' For example, if it's not a web app then
> > the war targets wont be useful, but the user might want that plugin
> > installed for use on other projects.
> >
> > Hope that makes a bit more sense.
> >
> > L.
> >
> > Dominik Dahlem wrote:
> > > Maven comes with plugins which provide most of the functionality you
> > > need. If there are any plugin which are not needed in your development
> > > environment you can delete them from the plugins list.
> > > Since some plugins are moved out of the core newer version of maven
just
> > > contain only those which are commonly needed.
> > >
> > > Dominik
> > >
> > > On Fri, 2003-10-10 at 03:55, Laurie Harper wrote:
> > >
> > >>Maven's coming along fast! :-) The trouble is, now 'maven -g' produces
a
> > >>somewhat overwhelming amount of options. Is there any way to constrain
> > >>the output to only list I expect my co-developers to care about?
> > >>
> > >>L.
> > >>
> > >>
> > >>
> > >>---------------------------------------------------------------------
> > >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >>For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: restricting maven -g

Posted by khote <kh...@mminternet.com>.
I wrote a file called message.properties
Up near the top of my maven.xml, prior to any <goal> being executed:

  <util:properties file="message.properties"    trim="true"/>

which contains various helps, including a general help message:

message.help = This is a help message \
that takes place over multiple lines \
etc.

Then I create a
<goal name="help">
  <echo message="${message.help}"/>
</goal>

in my maven.xml, this seems to do for me.
It's not at all like ant -projecthelp, you have to maintain it yourself, but
it does give me the functionality I want.

----- Original Message ----- 
From: "Laurie Harper" <zo...@holoweb.net>
To: <us...@maven.apache.org>
Sent: Tuesday, October 21, 2003 1:52 PM
Subject: Re: restricting maven -g


> Sorry for the slow response, I was on vacation! I understand I can get
> Maven not provide so much functionality :-) but that's not quite what I
> was looking for. When someone checks out my source tree, I want them to
> be able to get the equivalent of 'ant -projecthelp' or something:
> essentially, I want them to see a list of 'what targets are specifically
> of interest for this project?' For example, if it's not a web app then
> the war targets wont be useful, but the user might want that plugin
> installed for use on other projects.
>
> Hope that makes a bit more sense.
>
> L.
>
> Dominik Dahlem wrote:
> > Maven comes with plugins which provide most of the functionality you
> > need. If there are any plugin which are not needed in your development
> > environment you can delete them from the plugins list.
> > Since some plugins are moved out of the core newer version of maven just
> > contain only those which are commonly needed.
> >
> > Dominik
> >
> > On Fri, 2003-10-10 at 03:55, Laurie Harper wrote:
> >
> >>Maven's coming along fast! :-) The trouble is, now 'maven -g' produces a
> >>somewhat overwhelming amount of options. Is there any way to constrain
> >>the output to only list I expect my co-developers to care about?
> >>
> >>L.
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: restricting maven -g

Posted by Laurie Harper <zo...@holoweb.net>.
Sorry for the slow response, I was on vacation! I understand I can get 
Maven not provide so much functionality :-) but that's not quite what I 
was looking for. When someone checks out my source tree, I want them to 
be able to get the equivalent of 'ant -projecthelp' or something: 
essentially, I want them to see a list of 'what targets are specifically 
of interest for this project?' For example, if it's not a web app then 
the war targets wont be useful, but the user might want that plugin 
installed for use on other projects.

Hope that makes a bit more sense.

L.

Dominik Dahlem wrote:
> Maven comes with plugins which provide most of the functionality you
> need. If there are any plugin which are not needed in your development
> environment you can delete them from the plugins list.
> Since some plugins are moved out of the core newer version of maven just
> contain only those which are commonly needed.
> 
> Dominik
> 
> On Fri, 2003-10-10 at 03:55, Laurie Harper wrote:
> 
>>Maven's coming along fast! :-) The trouble is, now 'maven -g' produces a 
>>somewhat overwhelming amount of options. Is there any way to constrain 
>>the output to only list I expect my co-developers to care about?
>>
>>L.
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: restricting maven -g

Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
Maven comes with plugins which provide most of the functionality you
need. If there are any plugin which are not needed in your development
environment you can delete them from the plugins list.
Since some plugins are moved out of the core newer version of maven just
contain only those which are commonly needed.

Dominik

On Fri, 2003-10-10 at 03:55, Laurie Harper wrote:
> Maven's coming along fast! :-) The trouble is, now 'maven -g' produces a 
> somewhat overwhelming amount of options. Is there any way to constrain 
> the output to only list I expect my co-developers to care about?
> 
> L.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: restricting maven -g

Posted by di...@multitask.com.au.
Can you uninstall the plugins you don't want?
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


news <ne...@sea.gmane.org> wrote on 10/10/2003 12:55:41 PM:

> Maven's coming along fast! :-) The trouble is, now 'maven -g' produces a 

> somewhat overwhelming amount of options. Is there any way to constrain 
> the output to only list I expect my co-developers to care about?
> 
> L.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org