Skip to main content

Posts

Showing posts with the label Maven

Install Maven jar into local repo by Netbeans

What you could do (at least in NetBeans 6.5) is following: add dependency to the library in your pom go to Projects->your project->Libraries (you should see the library with exclamation mark) right click on the library, choose 'Manually install artifact' select the jar from local drive, 'Install locally' and you are done!

Jersey client post JSON object error

The error message is as follows "MessageBodyWriter not found for media type=application/json  ........ " For a Maven project, please add following line in pom.xml file to solve the issue.         <dependency>             <groupId>org.glassfish.jersey.media</groupId>             <artifactId>jersey-media-moxy</artifactId>             <version>2.11</version>         </dependency>