[ http://jira.codehaus.org/browse/MASSEMBLY-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=141116#action_141116 ]
Basil James Whitehouse III commented on MASSEMBLY-144: ------------------------------------------------------ I think this has to do with includeBaseDirectory being false and the output directory being / . A workaround that I discovered is to set the output directory to . (dot): {code:xml} <assembly> <id>bug-example</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <files> <file> <source>TODO.txt</source> <outputDirectory>.</outputDirectory> </file> </files> </assembly> {code} > wont put files in top level directory > ------------------------------------- > > Key: MASSEMBLY-144 > URL: http://jira.codehaus.org/browse/MASSEMBLY-144 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: Windows XP using maven 2.0.4. I think I am using > assembly 2.1 as that is the only version I could find in my ~/.m2 directory. > Reporter: Alan Kent > Assignee: John Casey > Priority: Minor > Fix For: 2.2-beta-1 > > > I am relatively new to Maven so hopefully this is not a silly mistake, but > the following assembly XML file will NOT include the TODO.txt file. If you > put the file into a subdirectory (using > <outputDirectory>a/b/c</outputDirectory> or by setting > <includeBaseDirectory>true</includeBaseDirectory>) then the file will appear > in the ZIP file. This is at least non-intuitive, but feels like a bug to me. > <assembly> > <id>bug-example</id> > <formats> > <format>zip</format> > </formats> > <includeBaseDirectory>false</includeBaseDirectory> > <files> > <file> > <source>TODO.txt</source> > <outputDirectory>/</outputDirectory> > </file> > </files> > </assembly> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira