Skip to content
ngocdaothanh edited this page Apr 1, 2013 · 10 revisions

java-apns is available on the Central Maven Repository, that is easily accessible through Maven and through its binary jar snapshot.

Installation through Maven (*.pom)

Java APNS project is available through maven repository, which is hosted at https://github.com/notnoop/m2-repo/raw/gh-pages . To use java-apns in your project, you can simply add the following to your pom.xml file:

    <dependencies>
        <dependency>
            <groupId>com.notnoop.apns</groupId>
            <artifactId>apns</artifactId>
            <version>0.2.3</version>
        </dependency>
        ...
    </dependencies>

Maven is a Java build tool that handles project dependencies.

Installation through Binary Snapshot

For the convenience for non-maven-users, snapshots of the maven releases are available at Downloads link . The download page would include two jars:

  • apns-0.1.5.jar, which only includes the java file
  • apns-0.1.5-jar-with-dependencies.jar, which includes all the dependencies (NOTE: using this may cause some classpath conflicts).

The project has three dependencies:

1. Jackson JSON library – The apns project uses the mapper and core modules to build apns payload notification messages

2. Logback library – The library uses Logback for internal logging

3. Apache MINA – (Optional) – The library uses Apache MINA project to initiate non-blocking secured connections to Apple. This is an optional dependency, only required when enabling ApnsServiceBuilder.withNonBlocking()

Clone this wiki locally