Search

Dark theme | Light theme

May 19, 2009

Include JSON-lib dependency in a Maven project

To include the JSON-lib library as a dependency to our Maven project we must not forget to use the classifier element. Otherwise the library will not be added to our project, because it cannot be downloaded from the repositories.

<dependency>
  <groupId>net.sf.json-lib</groupId>
  <artifactId>json-lib</artifactId>
  <version>2.2.3</version>
  <classifier>jdk15</classifier>
</dependency>