Hello I am getting error in Production while deploying my jar file , for the JSONArray class not found in the Jar which I have provided in the production.
The error is coming from my STS Eclipse project from the below code Initializing the JSONArray which i have added as below -
And I have also verified that the json library module is added in my pom.xml as well as shown below
i am building the jar file of my Eclipse project by Run As -> Maven Clean and then Run as -> Maven Build.
There is no compilation error in my STS/Eclipse at compile time. But in Production log - i am getting Caused by: java.lang.NoClassDefFoundError: org/json/JSONArray.
Any suggestion is greatly appreciated.
I tried reinstalling maven and run a clean build but still getting same issue.
I have also added below additional plugins in my pom.xml to try but no luck -
Verified the Maven Dependencies have the org.json
i have also verified he build configuration , even there the maven dependencies is added and showing me the org.json package references.
Please suggest !!