Issue
I have a maven project that is running smoothly on JAVA 7 but recently I wanted to migrate everything from 1.7 to JDK 1.8 but I've started getting error traces because of JIBX libraries. On a similar thread : Check this StackOverflow link- I found that only JIBX version 1.3.0 or higher is compatible with JDK 8.
So I made the following changes in my POM.xml :
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ejb-compile.dependency.ant-nodeps.version>1.6.5</ejb-compile.dependency.ant-nodeps.version>
<jdk-home>${jdk16.home}</jdk-home>
<maven.ejb.skip>true</maven.ejb.skip>
<jaxp.version>1.3</jaxp.version>
<jibx.version>1.3.1</jibx.version>
<distributed.context.api.version>1.1.12</distributed.context.api.version>
<distributed.context.impl.version>1.1.12</distributed.context.impl.version>
<generic.context.version>0.1.2</generic.context.version>
<something.uf.version>2.5.9</something.uf.version>
<!-- JConnect -->
<jconnect.version>0.11.1</jconnect.version>
<jconnect.majorversion>0.11</jconnect.majorversion>
But I'm getting the following stack trace and I have no idea from where it is picking jibx 1.2.2 as is seen in the error : I also searched for 1.2.2 declaration in my workspace but couldn't find anything, tried in .m2 folder's settings.xml but still no help. Can anybody please provide any leads here? Thanks
Edit : Full Link of POM.xml - https://ideone.com/IfN9FK ( There is character limit so I had to provide ideone link, it's there as text )
Solution
You aren't specifying the jibx version when you declare the jib dependency:
<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.3.0</version> <!-- Here! -->
<configuration>
<directory>src/main/jibx</directory>
<includes>
<includes>*.xml</includes>
</includes>
<verbose>${jibx.verbose}</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
</plugin>
Answered By - Mureinik
Answer Checked By - Mary Flores (JavaFixing Volunteer)