![]() The other important dependency is the :ecj dependency: this one specifies the exact version of the ecj compiler to use. You can find details on the plugin here, so progress can be followed on new releases/code changes. Version 2.8.4 should come with a rewritten interface to the compiler which fixes a lot of issues, but this version is still in the works at the time of writing. The 2.8.3 version was the latest at the time of writing but this version has a few issues. The dependency on plexus-codehaus-eclipse defines the plugin that knows how to run the Eclipse compiler. settings/.prefs file present (which is by happy chance the location where the Eclipse IDE leaves its compiler settings). $ variable inside the parameter I have these settings per project: every project is required to have a. A typical configuration would be the following: To make Maven use the ecj compiler you need to use the plexus-compiler-eclipse plugin and nothing else. I hope this helps to set things straight. To use the Eclipse Compiler inside Maven is not too hard, but there is a lot of misinformation and old information on the Internets which causes a lot of confusion. ![]() When applied rigorously this teaches you to code way more safe (by preventing null values) and it prevents NPE exceptions during testing or production. One of the most interesting things in the compiler is the addition of null types inside the compiler: by annotating your code with and annotations you can force the Eclipse compiler to check null accesses at compile time instead of runtime. It is fast, and it has way more warnings and errors that can be configured, improving code quality. The Eclipse Java Compiler (ecj) has a lot of advantages over the standard javac compiler. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |