我正在尝试使用maven插件生成XMLBeans类。我已经在我的POM文件中配置了它,但是每次我完成一个干净的安装时,我都会在调试日志中看到这一点:
调试XSD文件号:0 调试WSDL文件数:0 没有什么要生成的信息。
我的插件被定义为:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<version>2.3.3.002</version>
<executions>
<execution>
<id>xsd-to-java-xmlbeans</id>
<phase>generate-sources</phase>
<goals>
<goal>xmlbeans</goal>
</goals>
<inherited>true</inherited>
<configuration>
<classGenerationDirectory>${basedir}\src\main\java\</classGenerationDirectory>
<compiler>1.8</compiler>
<debug>true</debug>
<download>true</download>
<outputJar>subInterfaceXSD.jar</outputJar>
<quiet>false</quiet>
<schemaDirectory>${project.basedir}\src\main\resources\XSDFiles\</schemaDirectory>
<generatedSchemaDirectory>${project.basedir}\src\main\resources\XSDFiles\</generatedSchemaDirectory>
<sourceGenerationDirectory>${basedir}\src\main\java\</sourceGenerationDirectory>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>发布于 2019-06-07 11:59:57
这是一个有缺陷的插件。改用旧版本会有所帮助。
https://stackoverflow.com/questions/56493846
复制相似问题