Hi Colin,

Thanx for your comments. I've changed what was a preGoal to a goal in itself
(getSource), however now this has run everytime I run maven on this project.
Is it possible to change this so that it's only run in combination with
specific goals?

/c


----- Original Message -----
From: "Colin Sampaleanu" <[EMAIL PROTECTED]>
To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 3:44 PM
Subject: Re: preGoal problems


> Colin Chalmers wrote:
>
> >Hi all,
> >
> >I've got a wee problem with a preGoal which is being run twice. I'm using
b7 and trying to check out src from VSS before compiling. If I run "maven
site" the preGoal below is run twice. How can I do this more efficiently?
> >
> >/c
> >
> ><snip>
> >  <preGoal name="java:compile">
> >
> >     <delete dir="${java.src.local}"/>
> >
> >     <vssget localPath="${java.src.local}"
> >      recursive="true"
> >      login="${config.vss.uid},${config.vss.pwd}"
> >      serverPath="${vss.server.path}"
> >      vsspath="${vss.project}"
> >      writable="true">
> >     </vssget>
> >  </preGoal>
> ></snip>
> >
> >
> You _may_ be being hit by the fact that goals in maven are somewhat
> broken right now, to the extent that attainGoal as used all over the
> place knows nothing goals which have been achieved. So if somewhere
> along your build chain there are two attainGoals for java:compile, it
> would be called twice. I've submitted code for werkz and maven which
> resolves this, but it's not it yet...
>
> As an aside, I would question uncoditionally doing a check out before
> every compile though, unless this project is never used interactively,
> e.g.only called as part of a nightly build or something like that. Even
> then, I would probably make it a separate goal which is called
separately...
>
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to