You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by James CE Johnson <jc...@tragus.org> on 2003/07/23 19:11:26 UTC
Short-circuiting a goal?
Heya,
Is there any way for a preGoal to short-circuit a goal? Or, can I override
a plugin goal in my own maven.xml to disable it?
Its a long story but I've got an ejb:jar goal that builds my jarfile.
However, some of the standard goals rely on jar:jar and when that fires it
does Bad Things to the jar I've already built.
Thanks,
J
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Short-circuiting a goal?
Posted by Florin Vancea <fv...@maxiq.ro>.
Thanks for the tip. I noticed it recently while I was keeping an eye on the
latest changes. It's a new one, isn't it?
Florin
----- Original Message -----
From: "bob mcwhirter" <bo...@werken.com>
To: "Maven Developers List" <de...@maven.apache.org>
Cc: <jc...@tragus.org>
Sent: Thursday, July 24, 2003 4:31 PM
Subject: Re: Short-circuiting a goal?
>
> Ah, yah, last definition of a goal wins.
>
> Florin, you might prefer -Dmaven.test.skip=true on the command-line
> to skip running the tests.
>
> -bob
>
> On Thu, 24 Jul 2003, Florin Vancea wrote:
>
> > I've overridden successfully the "test:test" goal to speed up
occasionally
> > the development cycle. Just define a goal in maven.xml with the same
name as
> > tho overridden one, doing whatever you like.
> >
> > Florin
> >
> > ----- Original Message -----
> > From: "James CE Johnson" <jc...@tragus.org>
> > To: <de...@maven.apache.org>
> > Sent: Wednesday, July 23, 2003 8:11 PM
> > Subject: Short-circuiting a goal?
> >
> >
> > > Heya,
> > >
> > > Is there any way for a preGoal to short-circuit a goal? Or, can I
override
> > > a plugin goal in my own maven.xml to disable it?
> > >
> > > Its a long story but I've got an ejb:jar goal that builds my jarfile.
> > > However, some of the standard goals rely on jar:jar and when that
fires it
> > > does Bad Things to the jar I've already built.
> > >
> > > Thanks,
> > > J
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
> --
> Bob McWhirter bob@werken.com
> The Werken Company http://werken.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Short-circuiting a goal?
Posted by bob mcwhirter <bo...@werken.com>.
Ah, yah, last definition of a goal wins.
Florin, you might prefer -Dmaven.test.skip=true on the command-line
to skip running the tests.
-bob
On Thu, 24 Jul 2003, Florin Vancea wrote:
> I've overridden successfully the "test:test" goal to speed up occasionally
> the development cycle. Just define a goal in maven.xml with the same name as
> tho overridden one, doing whatever you like.
>
> Florin
>
> ----- Original Message -----
> From: "James CE Johnson" <jc...@tragus.org>
> To: <de...@maven.apache.org>
> Sent: Wednesday, July 23, 2003 8:11 PM
> Subject: Short-circuiting a goal?
>
>
> > Heya,
> >
> > Is there any way for a preGoal to short-circuit a goal? Or, can I override
> > a plugin goal in my own maven.xml to disable it?
> >
> > Its a long story but I've got an ejb:jar goal that builds my jarfile.
> > However, some of the standard goals rely on jar:jar and when that fires it
> > does Bad Things to the jar I've already built.
> >
> > Thanks,
> > J
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Bob McWhirter bob@werken.com
The Werken Company http://werken.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Short-circuiting a goal?
Posted by Florin Vancea <fv...@maxiq.ro>.
I've overridden successfully the "test:test" goal to speed up occasionally
the development cycle. Just define a goal in maven.xml with the same name as
tho overridden one, doing whatever you like.
Florin
----- Original Message -----
From: "James CE Johnson" <jc...@tragus.org>
To: <de...@maven.apache.org>
Sent: Wednesday, July 23, 2003 8:11 PM
Subject: Short-circuiting a goal?
> Heya,
>
> Is there any way for a preGoal to short-circuit a goal? Or, can I override
> a plugin goal in my own maven.xml to disable it?
>
> Its a long story but I've got an ejb:jar goal that builds my jarfile.
> However, some of the standard goals rely on jar:jar and when that fires it
> does Bad Things to the jar I've already built.
>
> Thanks,
> J
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Short-circuiting a goal?
Posted by bob mcwhirter <bo...@werken.com>.
Well, probably.
Find the com.werken.werkz.Session, and call addSatisfiedGoal( theGoal ).
You'll have to prowl the com.werken.werkz.WerkzProject to get the Goal
object to add. But that's the method werkz uses internally to track
which goals have been, well, satisfied.
Might be some complex jellyscript to accomplish it, but I think it's
ultimately do-able. Feel free to file modification requests in werkz's
jira if you find you need a happier/easier way to do it.
-bob
On Wed, 23 Jul 2003, James CE Johnson wrote:
> Heya,
>
> Is there any way for a preGoal to short-circuit a goal? Or, can I override
> a plugin goal in my own maven.xml to disable it?
>
> Its a long story but I've got an ejb:jar goal that builds my jarfile.
> However, some of the standard goals rely on jar:jar and when that fires it
> does Bad Things to the jar I've already built.
>
> Thanks,
> J
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Bob McWhirter bob@werken.com
The Werken Company http://werken.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org