This project helps to generate Java classes from existing JSON file.
git clone https://github.com/swojcicki/json-class-generator.git
cd json-class-generator
mvn clean install
<plugin>
<groupId>pl.edu.agh.student.wojcicks</groupId>
<artifactId>json-class-generator</artifactId>
<version>0.1</version>
<configuration>
<inputFile>${basedir}/src/main/resources/sample.json</inputFile>
<outputDirectory>${basedir}/src/main/java/pl/edu/agh/student/wojcicks/app/json</outputDirectory>
<packageName>pl.edu.agh.student.wojcicks.app.json</packageName>
</configuration>
<executions>
<execution>
<goals>
<goal>touch</goal>
</goals>
</execution>
</executions>
</plugin>
mvn clean json-class-generator:touch