You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Weiss <we...@llnl.gov> on 2005/07/19 01:58:03 UTC

Assembly plugin error

Maven2
java 1.5x

I am trying to use the Assembly plugin to build an "uber" jar, or any other 
archive type, that contains all of my classes, resources and 
dependencies.  Once I move the archive file to the deployment server I need 
to do some manual things including extracting everything and moving it into 
specific places.   (refer to message subject: How to include dependencies 
when building/installing a .jar)

Someone mentioned using the Assembly plugin, which I did.  However, I get 
the following error:

  bash-$> m2 -e clean:clean assembly:assembly package

+ Error stacktraces are turned on.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] 
----------------------------------------------------------------------------
[INFO] maven-clean-plugin: checking for updates from central-plugins
[INFO] Retrieving release information for maven-clean-plugin
[INFO] maven-clean-plugin: resolved to version 2.0-alpha-3 from local 
repository
[INFO] [clean:clean]
[INFO] maven-assembly-plugin: checking for updates from central-plugins
[INFO] Retrieving release information for maven-assembly-plugin
[INFO] maven-assembly-plugin: resolved to version 2.0-alpha-2 from local 
repository
[INFO] [assembly:assembly]
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Diagnosis: Error creating assembly
[INFO] 
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error creating assembly
         at 
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:117)
         at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:401)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:169)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:150)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103)
         at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
         at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.plugin.MojoExecutionException: You must specify 
descriptor or descriptorId
         at 
org.apache.maven.plugin.assembly.AssemblyMojo.doExecute(AssemblyMojo.java:142)
         at 
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:112)
         ... 16 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon Jul 18 15:40:24 AKDT 2005
[INFO] Final Memory: 2M/126M
[INFO] 
----------------------------------------------------------------------------



------------------------------
Any suggestions why I am getting this?  It seems to be complaining about a 
missing "descriptor or descriptorId".  I assume something is missing from 
my .pom, but where/what I am unsure....

TIA,
Eric

Eric Weiss
email: weiss7@llnl.gov



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


Re: Assembly plugin error

Posted by Brett Porter <br...@gmail.com>.
The assembly plugin requires a descriptor that describes how to
assemble the distribution. There are some builtin ones (descriptorId
of bin, src, jar-with-dependencies), or you can create your own and
specify it with descriptor.

Examples:
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/assemble/bin.xml
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/pom.xml

Sorry for the lack of documentation of this plugin at present.

- Brett

On 7/19/05, Eric Weiss <we...@llnl.gov> wrote:
> 
> Maven2
> java 1.5x
> 
> I am trying to use the Assembly plugin to build an "uber" jar, or any other
> archive type, that contains all of my classes, resources and
> dependencies.  Once I move the archive file to the deployment server I need
> to do some manual things including extracting everything and moving it into
> specific places.   (refer to message subject: How to include dependencies
> when building/installing a .jar)
> 
> Someone mentioned using the Assembly plugin, which I did.  However, I get
> the following error:
> 
>   bash-$> m2 -e clean:clean assembly:assembly package
> 
> + Error stacktraces are turned on.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] maven-clean-plugin: checking for updates from central-plugins
> [INFO] Retrieving release information for maven-clean-plugin
> [INFO] maven-clean-plugin: resolved to version 2.0-alpha-3 from local
> repository
> [INFO] [clean:clean]
> [INFO] maven-assembly-plugin: checking for updates from central-plugins
> [INFO] Retrieving release information for maven-assembly-plugin
> [INFO] maven-assembly-plugin: resolved to version 2.0-alpha-2 from local
> repository
> [INFO] [assembly:assembly]
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Diagnosis: Error creating assembly
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] Cause:
> org.apache.maven.plugin.MojoExecutionException: Error creating assembly
>          at
> org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:117)
>          at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:401)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:169)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:150)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103)
>          at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>          at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>          at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>          at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> Caused by: org.apache.maven.plugin.MojoExecutionException: You must specify
> descriptor or descriptorId
>          at
> org.apache.maven.plugin.assembly.AssemblyMojo.doExecute(AssemblyMojo.java:142)
>          at
> org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:112)
>          ... 16 more
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Jul 18 15:40:24 AKDT 2005
> [INFO] Final Memory: 2M/126M
> [INFO]
> ----------------------------------------------------------------------------
> 
> 
> 
> ------------------------------
> Any suggestions why I am getting this?  It seems to be complaining about a
> missing "descriptor or descriptorId".  I assume something is missing from
> my .pom, but where/what I am unsure....
> 
> TIA,
> Eric
> 
> Eric Weiss
> email: weiss7@llnl.gov
> 
> 
> 
> ---------------------------------------------------------------------
> 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