jbosstools / m2e-polyglot-poc

M2E Polyglot Support Experiment
Eclipse Public License 1.0
15 stars 8 forks source link

Pom translator fails if no `pom.xml` was found #13

Closed lefou closed 6 years ago

lefou commented 6 years ago

The internal error is a NullPointerException:

java.lang.NullPointerException
        at org.jboss.tools.maven.polyglot.poc.internal.core.PomTranslatorJob.translatePom(PomTranslatorJob.java:108)
        at org.jboss.tools.maven.polyglot.poc.internal.core.PomTranslatorJob.run(PomTranslatorJob.java:92)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

This happens, if I edit and save the pom.scala file inside Eclipse.

Having no pom.xml is the typical use case for polyglot projects.

lefou commented 6 years ago

Workaround: translate the polyglot pom to a pom.xml on the command line.