konsoletyper/teavm-flavour

Add "validation" maven mojo

mojo2012 opened this issue · 1 comments

Right now small coding errors (spelling mistakes, syntax errors etc) break the maven build. It would be nice to have some sort of "linter" or validator that quickly gives feedback and error messages.

That's a bad idea. Maven has lots of overheads, so you'll get slow solution anyway. The reason why you have slow build is Maven (it initializes, reads pom.xml, etc, and all this in a new JVM, which is not warmed up). The proper solution is to make such linter integrated into IDE. However, for projects, that aren't too large (I mean projects over 100K lines) you can just rebuild in IDE and it will be fast. Unfortunately, the only IDE supported by TeaVM for now is IDEA. Can you try to open your project in IDEA (see tutorial)?