Skip to content

FlattenMojo constructs dependencies directly which breaks Maven extension #87

Open
@wheene

Description

@wheene

FlattenMojo obtains ModelBuilder instance by using new directly, making it impossible to use custom impl of this interface provided by extensions. I hit this problem when combined with jgitver - tool for dynamically synthesizing project version from git, implemented as maven extension. Flatten plugin does not see versions produced by the extension leading to build failures.

Problem occurs in versions 1.0.1, 1.1.0 and 1.2.0-SNAPSHOT from current master (ac9eddb)

Pull request which suggests solution exists here #86.
Reproducer case can be found here https://github.com/wheene/jgitver-flatten.

cc @McFoggy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions