Skip to content

swojcicki/json-class-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-class-generator Java CI with Maven

About

This project helps to generate Java classes from existing JSON file.

Usage

Clone and install

git clone https://github.com/swojcicki/json-class-generator.git
cd json-class-generator
mvn clean install

Plugin configuration

<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>

Running

mvn clean json-class-generator:touch