You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Szczepan Faber <sz...@gmail.com> on 2006/04/05 12:26:58 UTC

[M2] Is it possible to create an assembly w/o assembly.xml?

Is it possible to create an assembly w/o assembly.xml (assembly descriptor)?

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


Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Valerio Schiavoni <va...@gmail.com>.
try instead:

mvn assembly:assembly -DdescriptorId=bin
mvn assembly:assembly -DdescriptorId=jar-with-dependencies
mvn assembly:assembly -DdescriptorId=src

i think the site of the plugin is a bit out dated.

On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
>
> I tried all of them:
>
> mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
> mvn assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
> mvn assembly:assembly -Dmaven.assembly.descriptorId=src
>
> , but still:
>
> "No assembly descriptors found."
>
> Do I need to download Pre-defined Descriptor Files from assembly plugin
> page?
>
> Thanks,
> Szczepan
>
> On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> > yes, there are pre-defined assembly descriptors.
> > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
> >
> > m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
> >
> >   or  m2 assembly:assembly -
> Dmaven.assembly.descriptorId=jar-with-dependencies
> >
> >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
> >
> >
> > cheers,
> > valerio
> >
> > On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
> > >
> > > Is it possible to create an assembly w/o assembly.xml (assembly
> > > descriptor)?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > To Iterate is Human, to Recurse, Divine
> > James O. Coplien, Bell Labs
> > (how good is to be human indeed)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)

Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Gautham Pamu <ga...@gmail.com>.
Is this plugin multiple project aware. If I run the command from top level,
it is doing assembly only for the top project but not
for the children. Is there fix for this problem.

Thanks
Gautham Pamu

On 4/8/06, Gautham Pamu <ga...@gmail.com> wrote:
>
> HiJakub,
>
> I tried this mvn assembly:assembly -DdescriptorId=bin with mvn 2.0.3version and I getting this error.. do we need to specify something in my
> pom.xml files... I don't have any assembly configuration in my pom
>
>
> [INFO] [assembly:assembly]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error creating assembly
>
> Embedded error: You must set at least one file.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException : Error creating
> assembly
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:488)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (Defau
> ltLifecycleExecutor.java:458)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:306)
>
>
> On 4/5/06, Jakub Pawlowicz <contact@jakubpawlowicz.com > wrote:
> >
> > Hi Szczepan,
> >
> > Try removing the "maven.assembly." prefix, eg. use this:
> > mvn assembly:assembly -DdescriptorId=bin
> >
> > It works perfectly for me (maven 2.0.3).
> > HTH
> >
> > Regards,
> > Jakub
> >
> > On Wed, 5 Apr 2006 13:53:35 +0200, Szczepan Faber wrote
> > > I tried all of them:
> > >
> > > mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
> > > mvn assembly:assembly -
> > Dmaven.assembly.descriptorId=jar-with-dependencies
> > > mvn assembly:assembly -Dmaven.assembly.descriptorId=src
> > >
> > > , but still:
> > >
> > > "No assembly descriptors found."
> > >
> > > Do I need to download Pre-defined Descriptor Files from assembly
> > > plugin page?
> > >
> > > Thanks,
> > > Szczepan
> > >
> > > On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> > > > yes, there are pre-defined assembly descriptors.
> > > > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
> > > >
> > > > m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
> > > >
> > > >   or  m2 assembly:assembly -
> > Dmaven.assembly.descriptorId=jar-with-dependencies
> > > >
> > > >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
> > > >
> > > >
> > > > cheers,
> > > > valerio
> > > >
> > > > On 4/5/06, Szczepan Faber < szczepiq@gmail.com> wrote:
> > > > >
> > > > > Is it possible to create an assembly w/o assembly.xml (assembly
> > > > > descriptor)?
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > To Iterate is Human, to Recurse, Divine
> > > > James O. Coplien, Bell Labs
> > > > (how good is to be human indeed)
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
> --
> -Gautham Pamu
>



--
-Gautham Pamu

Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Gautham Pamu <ga...@gmail.com>.
HiJakub,

I tried this mvn assembly:assembly -DdescriptorId=bin with mvn 2.0.3 version
and I getting this error.. do we need to specify something in my
pom.xmlfiles... I don't have any assembly configuration in my pom


[INFO] [assembly:assembly]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating assembly

Embedded error: You must set at least one file.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)

On 4/5/06, Jakub Pawlowicz <co...@jakubpawlowicz.com> wrote:
>
> Hi Szczepan,
>
> Try removing the "maven.assembly." prefix, eg. use this:
> mvn assembly:assembly -DdescriptorId=bin
>
> It works perfectly for me (maven 2.0.3).
> HTH
>
> Regards,
> Jakub
>
> On Wed, 5 Apr 2006 13:53:35 +0200, Szczepan Faber wrote
> > I tried all of them:
> >
> > mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
> > mvn assembly:assembly -
> Dmaven.assembly.descriptorId=jar-with-dependencies
> > mvn assembly:assembly -Dmaven.assembly.descriptorId=src
> >
> > , but still:
> >
> > "No assembly descriptors found."
> >
> > Do I need to download Pre-defined Descriptor Files from assembly
> > plugin page?
> >
> > Thanks,
> > Szczepan
> >
> > On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> > > yes, there are pre-defined assembly descriptors.
> > > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
> > >
> > > m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
> > >
> > >   or  m2 assembly:assembly -
> Dmaven.assembly.descriptorId=jar-with-dependencies
> > >
> > >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
> > >
> > >
> > > cheers,
> > > valerio
> > >
> > > On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
> > > >
> > > > Is it possible to create an assembly w/o assembly.xml (assembly
> > > > descriptor)?
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > To Iterate is Human, to Recurse, Divine
> > > James O. Coplien, Bell Labs
> > > (how good is to be human indeed)
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


--
-Gautham Pamu

Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Jakub Pawlowicz <co...@jakubpawlowicz.com>.
Hi Szczepan,

Try removing the "maven.assembly." prefix, eg. use this:
mvn assembly:assembly -DdescriptorId=bin

It works perfectly for me (maven 2.0.3).
HTH

Regards,
Jakub

On Wed, 5 Apr 2006 13:53:35 +0200, Szczepan Faber wrote
> I tried all of them:
> 
> mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
> mvn assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
> mvn assembly:assembly -Dmaven.assembly.descriptorId=src
> 
> , but still:
> 
> "No assembly descriptors found."
> 
> Do I need to download Pre-defined Descriptor Files from assembly 
> plugin page?
> 
> Thanks,
> Szczepan
> 
> On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> > yes, there are pre-defined assembly descriptors.
> > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
> >
> > m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
> >
> >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
> >
> >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
> >
> >
> > cheers,
> > valerio
> >
> > On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
> > >
> > > Is it possible to create an assembly w/o assembly.xml (assembly
> > > descriptor)?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > To Iterate is Human, to Recurse, Divine
> > James O. Coplien, Bell Labs
> > (how good is to be human indeed)
> >
> >
> 
> ---------------------------------------------------------------------
> 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: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Valerio Schiavoni <va...@gmail.com>.
no, they should be there...
what version of mvn are you using ?

On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
>
> I tried all of them:
>
> mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
> mvn assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
> mvn assembly:assembly -Dmaven.assembly.descriptorId=src
>
> , but still:
>
> "No assembly descriptors found."
>
> Do I need to download Pre-defined Descriptor Files from assembly plugin
> page?
>
> Thanks,
> Szczepan
>
> On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> > yes, there are pre-defined assembly descriptors.
> > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
> >
> > m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
> >
> >   or  m2 assembly:assembly -
> Dmaven.assembly.descriptorId=jar-with-dependencies
> >
> >   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
> >
> >
> > cheers,
> > valerio
> >
> > On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
> > >
> > > Is it possible to create an assembly w/o assembly.xml (assembly
> > > descriptor)?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > To Iterate is Human, to Recurse, Divine
> > James O. Coplien, Bell Labs
> > (how good is to be human indeed)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)

Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Szczepan Faber <sz...@gmail.com>.
I tried all of them:

mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
mvn assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
mvn assembly:assembly -Dmaven.assembly.descriptorId=src

, but still:

"No assembly descriptors found."

Do I need to download Pre-defined Descriptor Files from assembly plugin page?

Thanks,
Szczepan

On 4/5/06, Valerio Schiavoni <va...@gmail.com> wrote:
> yes, there are pre-defined assembly descriptors.
> http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
>
> m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
>
>   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies
>
>   or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
>
>
> cheers,
> valerio
>
> On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
> >
> > Is it possible to create an assembly w/o assembly.xml (assembly
> > descriptor)?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> To Iterate is Human, to Recurse, Divine
> James O. Coplien, Bell Labs
> (how good is to be human indeed)
>
>

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


Re: [M2] Is it possible to create an assembly w/o assembly.xml?

Posted by Valerio Schiavoni <va...@gmail.com>.
yes, there are pre-defined assembly descriptors.
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html

m2 assembly:assembly -Dmaven.assembly.descriptorId=bin

  or  m2 assembly:assembly -Dmaven.assembly.descriptorId=jar-with-dependencies

  or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src


cheers,
valerio

On 4/5/06, Szczepan Faber <sz...@gmail.com> wrote:
>
> Is it possible to create an assembly w/o assembly.xml (assembly
> descriptor)?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)