Hi,
Instead of use <moduleSets> try to use <fileSets> if possible, something
like this:

<fileSets>
        <fileSet>
            <directory>src/main/something</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>**/*.ext</include>
            </includes>
     <fileMode>0644</fileMode>
</fileSet>

I don't know if helps you but i hope so. You error trace is simple, it's
saying that you are not selecting any file.


Best Regards,
Ricardo Nascimento

On Thu, Oct 16, 2008 at 1:27 PM, johoso <
[EMAIL PROTECTED]> wrote:

>
> I am sorry that I am opening up and old thread and that I am also hijacking
> it. But this guy had the exact same problem as I do, but never posted his
> error trace. So I will do that instead.
>
> Is there anyone who can help out, please do!
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building *removed*
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Storing buildNumber: 081016142054 at timestamp: 1224159654550
> [INFO] [idlj:generate {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [INFO] [assembly:single {execution: packaging}]
> [INFO] Reading assembly descriptor: resources/packaging.xml
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to create assembly: Error creating assembly archive
> packaging:
> You must set at least one file.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create
> assembly: Error creating assembly archive packaging: You must set at least
> one file.
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        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 packaging: You must set at least
> one file.
>        at
>
> org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:368)
>        at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>        ... 16 more
> Caused by:
> org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error
> creating assembly archive packaging: You must set at least one file.
>        at
>
> org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:136)
>        at
>
> org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:322)
>        ... 18 more
> Caused by: org.codehaus.plexus.archiver.ArchiverException: You must set at
> least one file.
>        at
>
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:266)
>        at
>
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:249)
>        at
>
> org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:762)
>        at
>
> org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:496)
>        at
>
> org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:132)
>        ... 19 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 25 seconds
> [INFO] Finished at: Thu Oct 16 14:21:12 MEST 2008
> [INFO] Final Memory: 26M/380M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
>
>
> Eric Redmond wrote:
> >
> > run it with the -e extension, and send the printed out error message
> >
> > Eric
> >
> > On 3/2/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi all,
> >>
> >> After stabbing in the dark and adding the classifier after the included
> >> module name as below, I get the next incomprehensible message:
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Error creating assembly
> >>
> >> Embedded error: You must set at least one file.
> >>
> >> Anyone what what file this message might be talking about, and where one
> >> might "set" this file?
> >>
> >> The assembly now looks like this:
> >>
> >> <assembly>
> >>   <id>native</id>
> >>   <formats>
> >>     <format>dir</format>
> >>   </formats>
> >>   <includeBaseDirectory>false</includeBaseDirectory>
> >>   <moduleSets>
> >>     <moduleSet>
> >>       <includes>
> >>         <include>alchemy:alchemy-cdo:${os-platform}-${os-arch}</include>
> >>       </includes>
> >>       <binaries>
> >>         <unpack>true</unpack>
> >>         <fileMode>0755</fileMode>
> >>       </binaries>
> >>     </moduleSet>
> >>   </moduleSets>
> >> </assembly>
> >>
> >> Regards,
> >> Graham
> >> --
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Eric Redmond
> > http://codehaus.org/~eredmond
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Assembly-plugin%3A-You-must-set-at-least-one-file.-tp9272854p20012687.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to