This plugin generates the markdown table based on the project‘s event definition, the resulting MD file can be displayed on GitHub
- Java 1.8+
- Maven 3.3+
<plugin>
<groupId>com.github.halin</groupId>
<artifactId>event-table-generator-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<eventClass>{fullClassPath}</eventClass>
<idGetter>getId</idGetter>
<messageGetter>getDescription</messageGetter>
<outputPath>EVENTMESSAGE.md</outputPath>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>errorCodeGen</goal>
</goals>
</execution>
</executions>
</plugin>