Skip to content

org.sonatype.maven.polyglot.TeslaModelProcessor.locatePom(File) ignores files ending in.xml #192

Closed
@laeubi

Description

@laeubi

redirected here from https://issues.apache.org/jira/browse/MNG-6742
in org.sonatype.maven.polyglot.TeslaModelProcessor.locatePom(File) there is the following code:

File pomFile = manager.locatePom(dir);
   if (pomFile != null && !pomFile.getName().endsWith(".pom") && !pomFile.getName().endsWith(".xml")) {
...
}

This makes it impossible to return any file with xml ending as alternative to pom.xml, in my case data is stored in a file named category.xml and i can't use it because then my Mapping is never called.

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