You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Jefferson K . French" <je...@frenches.org> on 2004/01/03 16:40:30 UTC
Invoking a goal in a single subproject
What is the best way to invoke a goal in a single subproject from the
parent project? What I'm doing now is creating a goal in the parent's
maven.xml that overrides maven.multiproject.includes and
maven.multiproject.excludes to only include the subproject, then I
invoke multiproject:goal.
Is that the best way, or is there a tag akin to "attainGoal in
subproject".
Thanks.
Jeff
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Invoking a goal in a single subproject
Posted by "Jefferson K. French" <je...@frenches.org>.
That does what I want in one line. Thanks, Giles.
On Sat, 03 Jan 2004, at 16:45:59 [GMT +0100] Gilles Dodinet wrote:
> Jefferson K . French wrote:
>>Is that the best way, or is there a tag akin to "attainGoal in
>>subproject".
>>
> there may be some better way but something like this works with
> maven-1.0-rc1:
> <util:file var="subprojectDescriptor"
> name="${subproject.location}/project.xml"/>
> <maven:maven descriptor="${subprojectDescriptor}"
> goals="goal1,goal2"/>
> -- gd
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Invoking a goal in a single subproject
Posted by Gilles Dodinet <rh...@free.fr>.
Jefferson K . French wrote:
>Is that the best way, or is there a tag akin to "attainGoal in
>subproject".
>
there may be some better way but something like this works with
maven-1.0-rc1:
<util:file var="subprojectDescriptor"
name="${subproject.location}/project.xml"/>
<maven:maven descriptor="${subprojectDescriptor}"
goals="goal1,goal2"/>
-- gd
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org