我最近在我的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>
答案 0 :(得分:0)
最后得到了我的解决方案:评论<validate>false</validate>
或将其设置为true