I get an error of "Failed to create assembly: Error creating assembly archive: You must set at least one file." when I try to generate a binary assembly. The "project" one works fine, but the assembly plugin fails if I try to generate a "bin" distro.

I am using the built-in assemblies "project" and "bin" with the 2.2-SNAPSHOT of the maven-assembly-plugin


 <plugins>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-assembly-plugin</artifactId>
   <version>2.2-SNAPSHOT</version>
   <configuration>
    <descriptorRefs>
     <descriptorRef>project</descriptorRef>
     <descriptorRef>bin</descriptorRef>
    </descriptorRefs>
   </configuration>
  </plugin>
 </plugins>

I am able to use the "bin" assembly in my another maven project, so it's new condition with this project that is causing the failure.
From the debug output below, it states that there are no "No dependency sets
specified."

This is a multi-module project that is successfully creating jars, war, etc..
Appreciate any suggestions on how to proceed.

Phillip




[DEBUG]   (s) outputDirectory = /home/rhodepc/working/authsum/target
[DEBUG] (s) reactorProjects = [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] [DEBUG] (f) remoteRepositories = [[apache.org] -> http://people.apache.org/repo/m2-snapshot-repository, [Authsum Repository] -> http://www.authsum.org/repository/snapshots, [howardlewisship Repository] -> http://howardlewisship.com/repository/, [central] -> http://repo1.maven.org/maven2]
[DEBUG]   (s) siteDirectory = /home/rhodepc/working/authsum/target/site
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG]   (s) tempRoot = /home/rhodepc/working/authsum/target/archive-tmp
[DEBUG] (s) workDirectory = /home/rhodepc/working/authsum/target/assembly/work
[DEBUG] -- end configuration --
[INFO] [assembly:assembly]
[DEBUG] FileSet[null] dir perms: 40755 file perms: 100644
[DEBUG] The archive base directory is 'null'
[DEBUG] file-set directory: '/home/rhodepc/working/authsum'
[DEBUG] output directory: ''
[DEBUG] FileSet[] dir perms: 40755 file perms: 100644
[DEBUG] The archive base directory is 'null'
[DEBUG] file-set directory: '/home/rhodepc/working/authsum/target'
[DEBUG] output directory: ''
[DEBUG] No dependency sets specified.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create assembly: Error creating assembly archive: You must set at least one file.

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: Error creating assembly archive: You must set at least one file. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
       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:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error creating assembly archive: You must set at least one file. at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:302) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
       ... 16 more
Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive: You must set at least one file. at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:107) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:278)
       ... 18 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: You must set at least one file. at org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:158) at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:513) at org.apache.maven.plugin.assembly.archive.archiver.PrefixingProxyArchiver.createArchive(PrefixingProxyArchiver.java:91) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:103)
       ... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 36 seconds
[INFO] Finished at: Mon Feb 05 10:48:37 EST 2007
[INFO] Final Memory: 15M/33M
[INFO] ------------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to