My original problem of Nouschmethoderror. NoSuchMethodError with ActiveMQ. This problem led me here
I saw that my springboot java class was using Activemq 5.14.0 for compilation and it was using Activemq 5.9.1 for running.
I have a parent POM where activemq 5.9.1 was mentioned. I have a POM for my java class in which I mentioned 5.14.0 as the version used. So the 5.14.0 version was overwriting the 5.9.1 version for compilation.
But I dont know from where it is using 5.9.1 JAR when running the application.
I am attaching my effective POM for my java class and properties in effective POM of parent POM.