On Mon, 2002-07-01 at 09:39, Ringo De Smet wrote:
> Hello,
> 
> Can someone shed some light on how to use goals? What default goals are
> defined? How to get a list of them?

You can get a list of goals by using

./maven -g

Work is not complete yet. I would like to standardize the naming of
goals, the format of their naming say hyphenated or java variable naming
conventions, and Bob is going add a feature to werkz to make a goal
private to a source file so that only only goals listed in the source
file can use a particular goal.
 
> For example, in maven b4, I had a delegator to maven:site. Running
> 'maven site' with the pre-b5 (from HEAD), I get the following error:
> 
> D:\Development\Projects\Money>maven site
> 
>             maven: intelligent projects
> 
> project-directory: D:\Development\Projects\Money
>           project: Money (money)
>   current-version: 1.1
> 
> site:
> [ERROR] INTERNAL ERROR
> [ERROR] Reference made to goal 'site' which has no definition.

I will clean up the names of the goals. We had a couple name space
issues so I changed a few names. If you look at the core plugin there is
a site-report plugin that I'm using the generate the site documentation.

For any given goal you can set any number of goals to run before or
after. You place your preGoal/postGoal definitions in the maven.xml file
which lives in the same directory as your project.xml file.

So you might have something that looks like this in maven.xml:

<preGoal name="compile">

  <!-- Generate some sources -->

</preGoal>

<preGoal name="compile">

  <!-- Generate some mbeans -->

</preGoal>

Both of the pre-goals will be run before the compile goal. You can have
as many as you want and they will be executed in the order they are
listed in the source. You can do the same with <postGoal>s.

> Cheers,
> 
> Ringo
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to