Skip to content

Maven deploy goal fails with -f because of missing .polyglot.pom.* #220

Closed
@thorntonrp

Description

@thorntonrp

When running mvn -f path/to/pom.kts deploy (or any other polyglot pom), the command fails because the polyglot pom.kts is installed to the local repository instead of pom.xml. This is due to the temporary file .polyglot.pom.kts not being produced by the TeslaModelProcessor because the -f argument prevents the locatePom method from getting called.

This error can be verified by running mvn -f path/to/pom.kts install and seeing that the contents of the pom that gets installed into the local repository is from the polyglot pom instead of the xml pom.

I have a fix that resolves this issue. I will submit it in a PR shortly.

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