When I do a change to the dependency in my project pom.xml from
And this is what is recommended by many users in the JSR-353 group mailing list and also listed at Java EE 7 Maven Coordinates
I got the following error in my JUnit testing environment:
"Provider org.glassfish.json.JsonProviderImpl not found"
Note: it works with the following dependency
org.glassfish:javax.json is RI jar which contains both api+impl.
javax.json:javax.json-api contains only API which is there for compile time dependency. But if you want to run your app, you need a provider/impl. RI bundle provides them.