Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2-beta-1
-
None
-
None
-
Windows Vista
Description
I have a parent project and a child project. The child project builds an assembly composed of text files.
<fileSet>
<outputDirectory>bin</outputDirectory>
<directory>src/main/bin</directory>
<lineEnding>unix</lineEnding>
<includes>
<include>*.sh</include>
</includes>
</fileSet>
When I build the assembly from the child project , maven adds unix endings, but when I build it from the parent project, lineEnding is being ignored.
Attachments
Attachments
Issue Links
- is duplicated by
-
MASSEMBLY-284 regression: line ending setting is not honoured
- Closed
We have also stumbled upon this bug and I decided to find out the root cause. I checked out the plugin sources and added extra tracing info to the plugin code. After a few test runs, I realised that the bug can be fixed with a change in a single line of code.
class/method:
org.apache.maven.plugin.assembly.format.FileSetFormatter#formatFileSetForAssembly
patch against version 628941:
Is there a chance that it will be included in the next release?