You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Prasad Kashyap <go...@gmail.com> on 2006/06/26 17:48:18 UTC

Multiple executions of the assembly plugin

I have to use the <repository> element in the maven-assembly-plugin's
assembly descriptor. Using this makes the assembly contains maven
metadata files under META-INF. (maven/.../*.pom and pom.propperties).

One solution Jesse and I talked about was to execute the assembly
plugin twice. The first execution would copy the repository to the
${tempRoot}. The second execution would use <fileset><exclude> to copy
the dirs over but exclude META-INF/maven.

Here are the problems with this approach.

1) If I use assembly plugin in a execution, I get a "descriptor not
found error".  How can the assembly plugin be used in multiple
executions ?

2) The first execution of the assembly copies the repo into
${tempRoot}. But the next execution of the assembly cleans this dir
before starting. So the repo dirs are lost. Any ideas on how to get
around this ?

Thanx in advance
Prasad

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Multiple executions of the assembly plugin

Posted by Prasad Kashyap <go...@gmail.com>.
I tied the assembly goal to a phase. Problem resolved. Thanx for looking.

Cheers
Prasad

On 6/26/06, Prasad Kashyap <go...@gmail.com> wrote:
> Dan,
>
> I cannot use the dependency-plugin because with it I cannot duplicate
> the maven local repo structure in my assembly. The <repository>
> element of the assembly's descriptor allows me to do that. However,
> only the maven metadata info under META-INF/maven/*  in the repo is
> extraneous to me.
>
> Cheers
> Prasad
>
> On 6/26/06, dan tran <da...@gmail.com> wrote:
> > maven-dependency-plugin can prepare the "staging area" for you.
> >
> >
> >
> > -D
> >
> >
> > On 6/26/06, Prasad Kashyap <go...@gmail.com> wrote:
> > >
> > > I have to use the <repository> element in the maven-assembly-plugin's
> > > assembly descriptor. Using this makes the assembly contains maven
> > > metadata files under META-INF. (maven/.../*.pom and pom.propperties).
> > >
> > > One solution Jesse and I talked about was to execute the assembly
> > > plugin twice. The first execution would copy the repository to the
> > > ${tempRoot}. The second execution would use <fileset><exclude> to copy
> > > the dirs over but exclude META-INF/maven.
> > >
> > > Here are the problems with this approach.
> > >
> > > 1) If I use assembly plugin in a execution, I get a "descriptor not
> > > found error".  How can the assembly plugin be used in multiple
> > > executions ?
> > >
> > > 2) The first execution of the assembly copies the repo into
> > > ${tempRoot}. But the next execution of the assembly cleans this dir
> > > before starting. So the repo dirs are lost. Any ideas on how to get
> > > around this ?
> > >
> > > Thanx in advance
> > > Prasad
> > >
> > > ---------------------------------------------------------------------
> > > 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: Multiple executions of the assembly plugin

Posted by Prasad Kashyap <go...@gmail.com>.
Dan,

I cannot use the dependency-plugin because with it I cannot duplicate
the maven local repo structure in my assembly. The <repository>
element of the assembly's descriptor allows me to do that. However,
only the maven metadata info under META-INF/maven/*  in the repo is
extraneous to me.

Cheers
Prasad

On 6/26/06, dan tran <da...@gmail.com> wrote:
> maven-dependency-plugin can prepare the "staging area" for you.
>
>
>
> -D
>
>
> On 6/26/06, Prasad Kashyap <go...@gmail.com> wrote:
> >
> > I have to use the <repository> element in the maven-assembly-plugin's
> > assembly descriptor. Using this makes the assembly contains maven
> > metadata files under META-INF. (maven/.../*.pom and pom.propperties).
> >
> > One solution Jesse and I talked about was to execute the assembly
> > plugin twice. The first execution would copy the repository to the
> > ${tempRoot}. The second execution would use <fileset><exclude> to copy
> > the dirs over but exclude META-INF/maven.
> >
> > Here are the problems with this approach.
> >
> > 1) If I use assembly plugin in a execution, I get a "descriptor not
> > found error".  How can the assembly plugin be used in multiple
> > executions ?
> >
> > 2) The first execution of the assembly copies the repo into
> > ${tempRoot}. But the next execution of the assembly cleans this dir
> > before starting. So the repo dirs are lost. Any ideas on how to get
> > around this ?
> >
> > Thanx in advance
> > Prasad
> >
> > ---------------------------------------------------------------------
> > 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: Multiple executions of the assembly plugin

Posted by dan tran <da...@gmail.com>.
maven-dependency-plugin can prepare the "staging area" for you.



-D


On 6/26/06, Prasad Kashyap <go...@gmail.com> wrote:
>
> I have to use the <repository> element in the maven-assembly-plugin's
> assembly descriptor. Using this makes the assembly contains maven
> metadata files under META-INF. (maven/.../*.pom and pom.propperties).
>
> One solution Jesse and I talked about was to execute the assembly
> plugin twice. The first execution would copy the repository to the
> ${tempRoot}. The second execution would use <fileset><exclude> to copy
> the dirs over but exclude META-INF/maven.
>
> Here are the problems with this approach.
>
> 1) If I use assembly plugin in a execution, I get a "descriptor not
> found error".  How can the assembly plugin be used in multiple
> executions ?
>
> 2) The first execution of the assembly copies the repo into
> ${tempRoot}. But the next execution of the assembly cleans this dir
> before starting. So the repo dirs are lost. Any ideas on how to get
> around this ?
>
> Thanx in advance
> Prasad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>