I am a new Maven user. I am aware that the default compiler which Maven uses to build its projects with is Javac. However, I want to use JDT Core compiler in order to build.
I tried adding this plugin into my plugins in my root pom, but it doesn't work.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<compilerId>eclipse</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.4.2</version>
</dependency>
</dependencies>
</plugin>
would appreciate any help.
I got it working:
maven-compiler-plugin#non-javac-compilers
-> Plexus-Compiler
2.8.8) and2.9.0versions).like so:
with:
we get:
To use(try!;) an alternative
ecjversion, we can: