Starting (./mvnw) a jhipster microservice to which I added a KafkaTemplate with a typed message using Apache Avro gives me the following error in the maven-compiler-plugin:
java.lang.IllegalStateException: endPosTable already set
´´´
![](http://feitam.es/content/images/2019/08/mavenerrorendpostablealreadyset.png)
Keep in mind that I have added to the jhipster microservice the plugin avro-maven-plugin of org.apache.avro to generate the java code of the Avro typed message from the definition of the scheme in the compilation phase. And it is when I put this when the error is generated in the maven-compiler-plugin in the phase management:
![](http://feitam.es/content/images/2019/08/avromavenplugin.png)
I solved the error specifying in file pom.xml in section maven-compiler-plugin the configuration parameter useIncrementalCompilation to false (default is true):
![](http://feitam.es/content/images/2019/08/mavencompilerplugin.png)