-
Notifications
You must be signed in to change notification settings - Fork 24
Using mJson With Maven
bolerio edited this page May 15, 2014
·
1 revision
mJson is available on the Maven Central repository with the following coordinates:
<dependency> <groupId>org.sharegov</groupId> <artifactId>mjson</artifactId> <version>1.2</version> </dependency>
There is also version 1.1 in case you care, but no 1.0. The next release is going to be 1.3, so snapshots are currently available with version 1.3-snapshot
. But you may have to ensure the Sonatype snapshot repository is added to your settings.xml:
<profiles> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> </profile> </profiles>
Then the dependency becomes:
<dependency> <groupId>org.sharegov</groupId> <artifactId>mjson</artifactId> <version>1.3-SNAPSHOT</version> </dependency>