Skip to content

bnd-resolver-maven-plugin: Redirect resolver log to Maven plugin log #7217

@kwin

Description

@kwin

Currently the bnd-resolver-maven-plugin calls

public static RunResolution resolve(Project project, Processor actualProperties,
via
public String resolve(boolean failOnChanges, boolean writeOnChanges) throws Exception {
and via

As the passed resolverLogger is null, a new temporary one is created in

ResolverLogger logger = resolverLogger == null ? ResolverLogger.newLogger(actualProperties, false)
which just logs to a tmp file which is deleted at exit and otherwise just emits debug message via SLF4J ( )

For Maven plugins the one being returned via https://maven.apache.org/ref/3.9.15/maven-plugin-api/apidocs/org/apache/maven/plugin/Mojo.html#getLog() should be used instead through a wrapper derived from

public class ResolverLogger implements LogService, AutoCloseable {
.

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