Xml 如何使maven-jaxb2-plugin忽略我的项目源代码中已经存在的生成类

Xml 如何使maven-jaxb2-plugin忽略我的项目源代码中已经存在的生成类,xml,maven,xsd,maven-jaxb2-plugin,Xml,Maven,Xsd,Maven Jaxb2 Plugin,我正在使用maven jaxb2插件从xsd生成java类。我有一个要求,如果类已经存在于我的源代码中,它就不应该生成该类 Is there anyway can we configure to ignore the pojo generation if it is already exist. 例如: 我的源代码中已经存在Customer类,我不想再次重新生成,所以插件应该忽略它,即使我们处理Customer.xsd <plugins> <plugi

我正在使用maven jaxb2插件从xsd生成java类。我有一个要求,如果类已经存在于我的源代码中,它就不应该生成该类

Is there anyway can we configure to ignore the pojo generation if it is already exist.
例如:

我的源代码中已经存在Customer类,我不想再次重新生成,所以插件应该忽略它,即使我们处理Customer.xsd

<plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
             <groupId>org.jvnet.jaxb2.maven2</groupId>
            <artifactId>maven-jaxb2-plugin</artifactId>
         <version>0.12.1</version>
         <executions>
         <execution>
         <goals>
         <goal>generate</goal>
         </goals>
         </execution>
         </executions>
         <configuration>
         <schemaDirectory>${project.basedir}/src/main/resources/xsd</schemaDirectory>
  <!--          <generatePackage>com.test</generatePackage>
        <generateDirectory>${project.build.directory}/src/main/java</generateDirectory> -->


    enter code here

         <schemaIncludes>
         <include>*.xsd
         </include>
         </schemaIncludes>
         </configuration> 
            </plugin>
        </plugins>

org.springframework.boot
springbootmaven插件
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.12.1
生成
${project.basedir}/src/main/resources/xsd
在这里输入代码
*.xsd

这似乎不可能实现

如果您的文件已过期且需要重新编译,您可以控制“what other”(除了pom.xml等默认文件)控件,但不能排除“最新检查算法”中提到的任何默认文件