it fixes the issue I resolved it using a workaround. I created a lib folder inside my spring boot project folder structure and copied the JavaPNS-jar-2.2.0.jar inside lib folder and then referenced the jar using Add jars option inside configure build path in Eclipse. Then I again packaged it using Maven. And now created jar is working fine without any issues!!
Which Spring module should I use for a command line Spring Boot application that uses RestTemplate?
it helps some times I would stick with what https://spring.io/guides/gs/consuming-rest/ does. When you don't want to create a webserver, don't use -starter-web. Use the plain -starter to have "naked" boot application and add spring-web to have access to RestTemplate.
Spring Boot Missing Plugin when Running from Command Line
I wish this help you I ended up using the full command "mvn org.springframework.boot:spring-boot-maven-plugin:1.3.5.RELEASE:run", which worked for some reason when I ran it from the directory containing the pom.xml file.
Error running Spring Boot application from command line