You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/04/17 15:35:51 UTC

maven-assembly-plugin: unpack false not supported correctly

Hi all,

While trying to build an assembly using 2.2-beta-1 of the assembly plugin,
I end up with en empty zip file.

The key difference is the <unpack>false</unpack> - if this is set to true,
the assembly works, if however it is set to false, the assembly plugin
ignores the dependencies.

In order to be useful to us, the dependency plugin needs to set this to
false.

I have defined a dependencySet as follows:

    <dependencySet>
      <outputDirectory></outputDirectory>
      <outputFileNameMapping></outputFileNameMapping>
      <includes>
        <include>alchemy:alchemy-quant:jar:${os-platform}</include>
        <include>alchemy:alchemy-quant:ctf:${os-platform}</include>
        <include>alchemy:alchemy-transformer:jar:${os-platform}</include>
        <include>alchemy:alchemy-transformer:ctf:${os-platform}</include>
      </includes>
      <unpack>false</unpack>
      <scope>runtime</scope>
    </dependencySet>

What this is supposed to do is include the following dependencies within
the assembly:

    <dependency>
      <groupId>alchemy</groupId>
      <artifactId>alchemy-quant</artifactId>
      <version>${pom.version}</version>
      <classifier>${os-platform}</classifier>
    </dependency>
    <dependency>
      <groupId>alchemy</groupId>
      <artifactId>alchemy-quant</artifactId>
      <version>${pom.version}</version>
      <classifier>${os-platform}</classifier>
      <type>ctf</type>
    </dependency>
    <dependency>
      <groupId>alchemy</groupId>
      <artifactId>alchemy-transformer</artifactId>
      <version>${pom.version}</version>
      <classifier>${os-platform}</classifier>
    </dependency>
    <dependency>
      <groupId>alchemy</groupId>
      <artifactId>alchemy-transformer</artifactId>
      <version>${pom.version}</version>
      <classifier>${os-platform}</classifier>
      <type>ctf</type>
    </dependency>

Is this a known problem?

Regards,
Graham
--



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


Re: maven-assembly-plugin: unpack false not supported correctly

Posted by John Casey <ca...@gmail.com>.
Please file this in JIRA, so I can add some user-friendly messaging to it...

http://jira.codehaus.org/browse/MASSEMBLY

If you have a small test project I can use to incorporate in the integration
tests, that would be even better...

Thanks,

John

On 4/17/07, Brad Szabo <bs...@unicon.net> wrote:
>
> I may be wrong, but try removing the
> <outputFileNameMapping></outputFileNameMapping> with unpack set to
> false. I think it will pick up the dependencies then.
>
> Good luck,
> Brad
>
>
> On Tue, 2007-04-17 at 15:35 +0200, Graham Leggett wrote:
> > Hi all,
> >
> > While trying to build an assembly using 2.2-beta-1 of the assembly
> plugin,
> > I end up with en empty zip file.
> >
> > The key difference is the <unpack>false</unpack> - if this is set to
> true,
> > the assembly works, if however it is set to false, the assembly plugin
> > ignores the dependencies.
> >
> > In order to be useful to us, the dependency plugin needs to set this to
> > false.
> >
> > I have defined a dependencySet as follows:
> >
> >     <dependencySet>
> >       <outputDirectory></outputDirectory>
> >       <outputFileNameMapping></outputFileNameMapping>
> >       <includes>
> >         <include>alchemy:alchemy-quant:jar:${os-platform}</include>
> >         <include>alchemy:alchemy-quant:ctf:${os-platform}</include>
> >
> <include>alchemy:alchemy-transformer:jar:${os-platform}</include>
> >
> <include>alchemy:alchemy-transformer:ctf:${os-platform}</include>
> >       </includes>
> >       <unpack>false</unpack>
> >       <scope>runtime</scope>
> >     </dependencySet>
> >
> > What this is supposed to do is include the following dependencies within
> > the assembly:
> >
> >     <dependency>
> >       <groupId>alchemy</groupId>
> >       <artifactId>alchemy-quant</artifactId>
> >       <version>${pom.version}</version>
> >       <classifier>${os-platform}</classifier>
> >     </dependency>
> >     <dependency>
> >       <groupId>alchemy</groupId>
> >       <artifactId>alchemy-quant</artifactId>
> >       <version>${pom.version}</version>
> >       <classifier>${os-platform}</classifier>
> >       <type>ctf</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>alchemy</groupId>
> >       <artifactId>alchemy-transformer</artifactId>
> >       <version>${pom.version}</version>
> >       <classifier>${os-platform}</classifier>
> >     </dependency>
> >     <dependency>
> >       <groupId>alchemy</groupId>
> >       <artifactId>alchemy-transformer</artifactId>
> >       <version>${pom.version}</version>
> >       <classifier>${os-platform}</classifier>
> >       <type>ctf</type>
> >     </dependency>
> >
> > Is this a known problem?
> >
> > Regards,
> > Graham
> > --
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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: maven-assembly-plugin: unpack false not supported correctly

Posted by Brad Szabo <bs...@unicon.net>.
I may be wrong, but try removing the
<outputFileNameMapping></outputFileNameMapping> with unpack set to
false. I think it will pick up the dependencies then.

Good luck,
Brad


On Tue, 2007-04-17 at 15:35 +0200, Graham Leggett wrote:
> Hi all,
> 
> While trying to build an assembly using 2.2-beta-1 of the assembly plugin,
> I end up with en empty zip file.
> 
> The key difference is the <unpack>false</unpack> - if this is set to true,
> the assembly works, if however it is set to false, the assembly plugin
> ignores the dependencies.
> 
> In order to be useful to us, the dependency plugin needs to set this to
> false.
> 
> I have defined a dependencySet as follows:
> 
>     <dependencySet>
>       <outputDirectory></outputDirectory>
>       <outputFileNameMapping></outputFileNameMapping>
>       <includes>
>         <include>alchemy:alchemy-quant:jar:${os-platform}</include>
>         <include>alchemy:alchemy-quant:ctf:${os-platform}</include>
>         <include>alchemy:alchemy-transformer:jar:${os-platform}</include>
>         <include>alchemy:alchemy-transformer:ctf:${os-platform}</include>
>       </includes>
>       <unpack>false</unpack>
>       <scope>runtime</scope>
>     </dependencySet>
> 
> What this is supposed to do is include the following dependencies within
> the assembly:
> 
>     <dependency>
>       <groupId>alchemy</groupId>
>       <artifactId>alchemy-quant</artifactId>
>       <version>${pom.version}</version>
>       <classifier>${os-platform}</classifier>
>     </dependency>
>     <dependency>
>       <groupId>alchemy</groupId>
>       <artifactId>alchemy-quant</artifactId>
>       <version>${pom.version}</version>
>       <classifier>${os-platform}</classifier>
>       <type>ctf</type>
>     </dependency>
>     <dependency>
>       <groupId>alchemy</groupId>
>       <artifactId>alchemy-transformer</artifactId>
>       <version>${pom.version}</version>
>       <classifier>${os-platform}</classifier>
>     </dependency>
>     <dependency>
>       <groupId>alchemy</groupId>
>       <artifactId>alchemy-transformer</artifactId>
>       <version>${pom.version}</version>
>       <classifier>${os-platform}</classifier>
>       <type>ctf</type>
>     </dependency>
> 
> Is this a known problem?
> 
> Regards,
> Graham
> --
> 
> 
> 
> ---------------------------------------------------------------------
> 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