Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2-beta-1
-
Fix Version/s: 2.2-beta-3
-
Component/s: None
-
Labels:None
-
Environment:Windows Vista
-
Number of attachments :
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.
Issue Links
- is duplicated by
-
MASSEMBLY-284
regression: line ending setting is not honoured
-
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?