WSRPC Maven Plugin to Generate Code
This maven plugin will generated the needed source files as determined by a WebSocket RPC (wsrpc) specification file. The specification file is a JSON file that defines the wsrpc interface that is to be generated.
For more documentation on wsrpc, see the main project.
To use this plugin, add it to your maven project descriptor pom.xml. The following example shows how to generate a interfaces defined in the "wsrpc" subdirectory.
<plugin>
<groupId>net.psgglobal.wsrpc</groupId>
<artifactId>wsrpc-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<inputDir>${project.sourceDirectory}/main/resources/wsrpc</inputDir>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
All files ending in .json
will be processed.