Skip to content

org.sonatype.maven.polyglot.TeslaModelProcessor.read(Reader, Map<String, ?>) should not assume replacement pom is always a readable file #210

Closed
@laeubi

Description

@laeubi

When reading the replacement model TeslaModelProcessor always assumes that the location is an (existing) file that can be read via an inputstream by creating an FileModelSource and then passing the inputstream to the ModelReader.

This has the drawback that file must exist and be located on the local filesystem as a physical, readable file.

a simple fix would be not to call org.apache.maven.model.io.ModelReader.read(InputStream, Map<String, ?>) but org.apache.maven.model.io.ModelReader.read(File, Map<String, ?>)

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