【问题标题】:Maven compilation jibx pluginMaven编译jibx插件
【发布时间】:2018-05-29 18:26:09
【问题描述】:

我最近在我的 maven 项目中将 java 从 1.6 升级到了 1.8。 我正在使用 Eclipse IDE,由于升级后我的 pom.xml 不再编译,因为 jibx 插件上显示错误: 不应使用 null root 调用 (org.jibx:jibx-maven-plugin:1.3.1:bind:default:process-classes) 这是我在 pom.xml 中的 jibx 插件声明,我尝试了不同的方法,但无法解决此错误:

               <!-- JIBX -->
                <plugin> 
                    <groupId>org.jibx</groupId>
                    <artifactId>jibx-maven-plugin</artifactId>
                    <version>1.3.1</version>
                    <configuration> 
                        <validate>false</validate>
                        <schemaBindingDirectory>src/main/resources/oxm/bindings</schemaBindingDirectory>
                        <includeSchemaBindings>
                            <includeSchemaBinding>xxx.xml</includeSchemaBinding>
                            <includeSchemaBinding>xxx.xml</includeSchemaBinding> 
                            <includeSchemaBinding>xxx.xml</includeSchemaBinding>
                            <includeSchemaBinding>xxx.xml</includeSchemaBinding>
                        </includeSchemaBindings>
                        <load>true</load>
                        <validate>false</validate>
                        <verify>false</verify>
                        <verbose>false</verbose>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>org.jibx</groupId>
                            <artifactId>jibx-bind</artifactId>
                            <version>1.3.1</version> 
                        </dependency>
                    </dependencies>
                    <executions>
                        <execution>
                            <phase>process-classes</phase>
                            <goals>
                                <goal>bind</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>   
...
<dependencies>
...
        <dependency>
            <groupId>org.jibx</groupId>
            <artifactId>jibx-run</artifactId>
            <version>1.3.1</version>
            <exclusions><!-- xpp excluded because in conflict with another version provided in websphere -->
                <exclusion>
                    <artifactId>xpp3</artifactId>
                    <groupId>xpp3</groupId>
                </exclusion>
            </exclusions>
        </dependency>
...
<dependencies>

【问题讨论】:

    标签: java eclipse maven jibx


    【解决方案1】:

    终于得到了我的解决方案:评论&lt;validate&gt;false&lt;/validate&gt;或设置为true

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-07
      • 1970-01-01
      • 2021-11-27
      • 1970-01-01
      相关资源
      最近更新 更多