在在线工具http://www.jsonschema2pojo.org/中有一个设置类名的选项,因此生成的根类将按照我的意愿命名。我在 maven-plugin 选项中找不到相同的选项,并且生成的根类具有默认名称:OutputSchema.java 有没有办法设置它?我的 pom.xml
<plugin>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
<targetPackage>com.test.generated</targetPackage>
<targetVersion>1.8</targetVersion>
<sourceType>json</sourceType>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>