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 Williams <dn...@gmail.com> on 2007/08/16 19:22:36 UTC

Maven Assembly Plugin Error

I've create a basic descriptor for the maven assembly plugin.  Which works
fine if I don't try to filter dependencies.  However when I try to add some
include lines, I get the following error.

[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'commons-beanutils-1.7.0.jar'
o  'commons-collections-3.1.jar'
o  'commons-lang-2.0.jar'
o  'commons-logging-1.0.4.jar'

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to create assembly: Error creating assembly archive: You must
set at least one file.

Here is my descriptor file.

<assembly>
    <id>zip</id>
    <formats>
        <format>zip</format>
    </formats>
    <baseDirectory>AdminDesktop</baseDirectory>
    <dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <includes>
                <include>commons-beanutils-1.7.0.jar</include>
                <include>commons-collections-3.1.jar</include>
                <include>commons-lang-2.0.jar</include>
                <include>commons-logging-1.0.4.jar</include>
            </includes>
        </dependencySet>
    </dependencySets>
</assembly>

Thanks,

David

Re: Maven Assembly Plugin Error

Posted by David Williams <dn...@gmail.com>.
Ops.  Sorry about that.  Below is the dependencySets section of the assembly
descriptor.  The include lines will include the only what is in the line.
The format is groupID:artifactID

<dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <includes>
                <include>commons-beanutils:commons-beanutils</include>
                <include>commons-collections:commons-collections</include>
                <include>commons-lang:commons-lang</include>
                <include>commons-logging:commons-logging</include>
                <include>commons-validator:commons-validator</include>
                <include>log4j:log4j</include>
            </includes>
        </dependencySet>
    </dependencySets>


On 8/16/07, Mick Knutson <mi...@gmail.com> wrote:
>
> So post the fix....
>
> On 8/16/07, David Williams <dn...@gmail.com> wrote:
> >
> > Nevermind.  I figured it out.
> >
> > On 8/16/07, David Williams <dn...@gmail.com> wrote:
> > >
> > > I guess what I really want to do is filter out certain dependencies.
> > >
> > > Thanks Again,
> > >
> > > David
> > >
> > > On 8/16/07, David Williams < dnsw06@gmail.com> wrote:
> > > >
> > > > I've create a basic descriptor for the maven assembly plugin.  Which
> > > > works fine if I don't try to filter dependencies.  However when I
> try
> > to add
> > > > some include lines, I get the following error.
> > > >
> > > > [WARNING] The following patterns were never triggered in this
> artifact
> > > > inclusion filter:
> > > > o  'commons-beanutils-1.7.0.jar'
> > > > o  'commons-collections-3.1.jar'
> > > > o  'commons-lang-2.0.jar'
> > > > o  'commons-logging-1.0.4.jar'
> > > >
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Failed to create assembly: Error creating assembly archive:
> You
> > > > must set at least one file.
> > > >
> > > > Here is my descriptor file.
> > > >
> > > > <assembly>
> > > >     <id>zip</id>
> > > >     <formats>
> > > >         <format>zip</format>
> > > >     </formats>
> > > >     <baseDirectory>AdminDesktop</baseDirectory>
> > > >     <dependencySets>
> > > >         <dependencySet>
> > > >             <outputDirectory>lib</outputDirectory>
> > > >             <includes>
> > > >                 <include>commons-beanutils-1.7.0.jar</include>
> > > >                 <include> commons-collections-3.1.jar</include>
> > > >                 <include>commons-lang-2.0.jar</include>
> > > >                 <include>commons-logging-1.0.4.jar</include>
> > > >             </includes>
> > > >         </dependencySet>
> > > >     </dependencySets>
> > > > </assembly>
> > > >
> > > > Thanks,
> > > >
> > > > David
> > > >
> > >
> > >
> >
>
>
>
> --
>
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

Re: Maven Assembly Plugin Error

Posted by Mick Knutson <mi...@gmail.com>.
So post the fix....

On 8/16/07, David Williams <dn...@gmail.com> wrote:
>
> Nevermind.  I figured it out.
>
> On 8/16/07, David Williams <dn...@gmail.com> wrote:
> >
> > I guess what I really want to do is filter out certain dependencies.
> >
> > Thanks Again,
> >
> > David
> >
> > On 8/16/07, David Williams < dnsw06@gmail.com> wrote:
> > >
> > > I've create a basic descriptor for the maven assembly plugin.  Which
> > > works fine if I don't try to filter dependencies.  However when I try
> to add
> > > some include lines, I get the following error.
> > >
> > > [WARNING] The following patterns were never triggered in this artifact
> > > inclusion filter:
> > > o  'commons-beanutils-1.7.0.jar'
> > > o  'commons-collections-3.1.jar'
> > > o  'commons-lang-2.0.jar'
> > > o  'commons-logging-1.0.4.jar'
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Failed to create assembly: Error creating assembly archive: You
> > > must set at least one file.
> > >
> > > Here is my descriptor file.
> > >
> > > <assembly>
> > >     <id>zip</id>
> > >     <formats>
> > >         <format>zip</format>
> > >     </formats>
> > >     <baseDirectory>AdminDesktop</baseDirectory>
> > >     <dependencySets>
> > >         <dependencySet>
> > >             <outputDirectory>lib</outputDirectory>
> > >             <includes>
> > >                 <include>commons-beanutils-1.7.0.jar</include>
> > >                 <include> commons-collections-3.1.jar</include>
> > >                 <include>commons-lang-2.0.jar</include>
> > >                 <include>commons-logging-1.0.4.jar</include>
> > >             </includes>
> > >         </dependencySet>
> > >     </dependencySets>
> > > </assembly>
> > >
> > > Thanks,
> > >
> > > David
> > >
> >
> >
>



-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: Maven Assembly Plugin Error

Posted by David Williams <dn...@gmail.com>.
Nevermind.  I figured it out.

On 8/16/07, David Williams <dn...@gmail.com> wrote:
>
> I guess what I really want to do is filter out certain dependencies.
>
> Thanks Again,
>
> David
>
> On 8/16/07, David Williams < dnsw06@gmail.com> wrote:
> >
> > I've create a basic descriptor for the maven assembly plugin.  Which
> > works fine if I don't try to filter dependencies.  However when I try to add
> > some include lines, I get the following error.
> >
> > [WARNING] The following patterns were never triggered in this artifact
> > inclusion filter:
> > o  'commons-beanutils-1.7.0.jar'
> > o  'commons-collections-3.1.jar'
> > o  'commons-lang-2.0.jar'
> > o  'commons-logging-1.0.4.jar'
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to create assembly: Error creating assembly archive: You
> > must set at least one file.
> >
> > Here is my descriptor file.
> >
> > <assembly>
> >     <id>zip</id>
> >     <formats>
> >         <format>zip</format>
> >     </formats>
> >     <baseDirectory>AdminDesktop</baseDirectory>
> >     <dependencySets>
> >         <dependencySet>
> >             <outputDirectory>lib</outputDirectory>
> >             <includes>
> >                 <include>commons-beanutils-1.7.0.jar</include>
> >                 <include> commons-collections-3.1.jar</include>
> >                 <include>commons-lang-2.0.jar</include>
> >                 <include>commons-logging-1.0.4.jar</include>
> >             </includes>
> >         </dependencySet>
> >     </dependencySets>
> > </assembly>
> >
> > Thanks,
> >
> > David
> >
>
>

Re: Maven Assembly Plugin Error

Posted by David Williams <dn...@gmail.com>.
I guess what I really want to do is filter out certain dependencies.

Thanks Again,

David

On 8/16/07, David Williams <dn...@gmail.com> wrote:
>
> I've create a basic descriptor for the maven assembly plugin.  Which works
> fine if I don't try to filter dependencies.  However when I try to add some
> include lines, I get the following error.
>
> [WARNING] The following patterns were never triggered in this artifact
> inclusion filter:
> o  'commons-beanutils-1.7.0.jar'
> o  'commons-collections-3.1.jar'
> o  'commons-lang-2.0.jar'
> o  'commons-logging-1.0.4.jar'
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to create assembly: Error creating assembly archive: You
> must set at least one file.
>
> Here is my descriptor file.
>
> <assembly>
>     <id>zip</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <baseDirectory>AdminDesktop</baseDirectory>
>     <dependencySets>
>         <dependencySet>
>             <outputDirectory>lib</outputDirectory>
>             <includes>
>                 <include>commons-beanutils-1.7.0.jar</include>
>                 <include> commons-collections-3.1.jar</include>
>                 <include>commons-lang-2.0.jar</include>
>                 <include>commons-logging-1.0.4.jar</include>
>             </includes>
>         </dependencySet>
>     </dependencySets>
> </assembly>
>
> Thanks,
>
> David
>