Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1
-
None
-
None
-
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.
Description
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>