简体   繁体   English

XSD未被XMLBeans Maven插件选取

[英]XSD Not Picked Up by XMLBeans Maven Plugin

I am trying to generate XMLBeans classes using maven plugin. 我正在尝试使用maven插件生成XMLBeans类。 I have configured this in my POM file, but every time I do a clean install, I see this in the debug logs: 我已经在我的POM文件中配置了这个,但每次进行全新安装时,我都会在调试日志中看到这一点:

[DEBUG] Number of XSD Files: 0 [DEBUG] XSD文件数:0

[DEBUG] Number of WSDL Files: 0 [DEBUG] WSDL文件数:0

[INFO] Nothing to generate. [INFO]无法生成。

My plugin is defined as: 我的插件定义为:

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

This was a buggy plugin. 这是一个有缺陷的插件。 Switching to an older version helped. 切换到旧版本有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM