Skip to content

AppendingTransformer generates undesired empty lines that cause errors #798

@jafarre-bi

Description

@jafarre-bi

Affected version

3.6.2

Bug description

I'm transforming the files META-INF/maven/org.apache.maven.api.di.Inject using the AppendingTransformer.
After each merged file, it adds an empty line. From what I see in the code, it blindly adds a line feed after appending each file's contents, so it generates an empty line for each line ending with a line feed. Unfortunately, maven-di tries to load empty entries, resulting in exceptions. This makes it unusable in my use case, and I don't have a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions