Closed lofidewanto closed 4 years ago
I'm not sure why I get the error... There is this annotation processor in the compiler (see pom.xml):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
<compilerArgs>
<arg>-Aregister=AppTemplates</arg>
</compilerArgs>
<annotationProcessors>
<annotationProcessor>com.dncomponents.TemplateProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>
Got exactly the same error on Travis: https://travis-ci.org/github/gwtboot/gwt-boot-samples
Done with a workaround in Maven compiler plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<executions>
<execution>
<id>process-annotations</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<excludes>
<!-- Here exclude EntryPoint Java file from compilation -->
<!-- Either exclude with full path to file that implements EntryPoint -->
<!-- Interface or follow name convention that contains EntryPoint word like AppEntryPoint -->
<exclude>**/*EntryPoint*.*</exclude>
</excludes>
<compilerArgs>
<arg>-Aregister=AppTemplates</arg>
<arg>-proc:only</arg>
<arg>-processor</arg>
<arg>com.dncomponents.TemplateProcessor</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-proc:none</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
Done for now
Please revert this:
`
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
<compilerArgs>
<arg>-Aregister=AppTemplates</arg>
</compilerArgs>
<annotationProcessors>
<annotationProcessor>com.dncomponents.TemplateProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>`
No need for workaround after annotation processor bug fixed in dncomponents version 2.3.2 .
Thanks
Done!
I could run the example with the devmode, everything works fine. But as soon as I try to compile in "pure" Maven I get following error:
With devmode I could run the webapp without any problems.