I'm trying to use jsonschema2pojo to generate POJO files from JSON Files and the plugin is not working for me. I'm able to create POJOs from JSON Schema Files but not from JSON Files.
<plugins>
<plugin>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>0.4.2</version>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/schema2</sourceDirectory>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
<targetPackage>pojos</targetPackage>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
</plugins>
Is it possible to use JSON files to generate the POJOs ? Any help would be highly appreciated.