You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Smiley <ds...@mitre.org> on 2006/05/25 16:44:39 UTC
generating files for use by assembly plugin
I want to use the assembly plugin but some of the files to be assembled
need to be generated beforehand (not classpath stuff). So how do I
get, say an ant-based generation process to be invoked prior to
invocation of assembly:assembly? In maven 1 I would have used a
preGoal; but with Maven 2 I am not sure what to do.
I looked around but can't seem to figure out a way to do this.
THANKS
~ David Smiley
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: generating files for use by assembly plugin
Posted by dan tran <da...@gmail.com>.
executing assembly:assembly trigger all phases upto package to run. So your
antrun should work.
-D
On 5/26/06, David Smiley <ds...@mitre.org> wrote:
>
> On 2006-05-25 12:01:30 -0400, "dan tran" <da...@gmail.com> said:
>
> >
> > bind antrun plugin at generate-sources phase.
> >
> > see antrun plugin's instructions for detail
>
> I know I could do that... I was wondering if there was some way I could
> ensure that this happens before assembly:assembly happens. AFAIK, the
> whole assembly thing is not part of the build lifecycle, and so I can't
> ensure things happen before or after any particular goal (like
> assembly:assembly)
> ~ David
>
> >
> > -D
> >
> >
> > On 5/25/06, David Smiley <ds...@mitre.org> wrote:
> >>
> >> I want to use the assembly plugin but some of the files to be assembled
> >> need to be generated beforehand (not classpath stuff). So how do I
> >> get, say an ant-based generation process to be invoked prior to
> >> invocation of assembly:assembly? In maven 1 I would have used a
> >> preGoal; but with Maven 2 I am not sure what to do.
> >>
> >> I looked around but can't seem to figure out a way to do this.
> >>
> >> THANKS
> >>
> >> ~ David Smiley
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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: generating files for use by assembly plugin
Posted by David Smiley <ds...@mitre.org>.
On 2006-05-25 12:01:30 -0400, "dan tran" <da...@gmail.com> said:
>
> bind antrun plugin at generate-sources phase.
>
> see antrun plugin's instructions for detail
I know I could do that... I was wondering if there was some way I could
ensure that this happens before assembly:assembly happens. AFAIK, the
whole assembly thing is not part of the build lifecycle, and so I can't
ensure things happen before or after any particular goal (like
assembly:assembly)
~ David
>
> -D
>
>
> On 5/25/06, David Smiley <ds...@mitre.org> wrote:
>>
>> I want to use the assembly plugin but some of the files to be assembled
>> need to be generated beforehand (not classpath stuff). So how do I
>> get, say an ant-based generation process to be invoked prior to
>> invocation of assembly:assembly? In maven 1 I would have used a
>> preGoal; but with Maven 2 I am not sure what to do.
>>
>> I looked around but can't seem to figure out a way to do this.
>>
>> THANKS
>>
>> ~ David Smiley
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: generating files for use by assembly plugin
Posted by dan tran <da...@gmail.com>.
bind antrun plugin at generate-sources phase.
see antrun plugin's instructions for detail
-D
On 5/25/06, David Smiley <ds...@mitre.org> wrote:
>
> I want to use the assembly plugin but some of the files to be assembled
> need to be generated beforehand (not classpath stuff). So how do I
> get, say an ant-based generation process to be invoked prior to
> invocation of assembly:assembly? In maven 1 I would have used a
> preGoal; but with Maven 2 I am not sure what to do.
>
> I looked around but can't seem to figure out a way to do this.
>
> THANKS
>
> ~ David Smiley
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>