takari / polyglot-maven

Support alternative markup for Apache Maven POM files
Eclipse Public License 1.0
893 stars 101 forks source link

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

Closed thorntonrp closed 3 years ago

thorntonrp commented 4 years ago

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.

mosabua commented 3 years ago

0.4.6 is out