Skip to content
oehmiche edited this page Dec 9, 2010 · 10 revisions

java-apns is available on a custom private 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:

    <repositories>
      ....
      <repository>
        <id>notnoop-repos</id>
        <url>https://github.com/notnoop/m2-repo/raw/gh-pages</url>
      </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.notnoop.apns</groupId>
            <artifactId>apns</artifactId>
            <version>0.1.1</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.1.jar, which only includes the java file
  • apns-0.1.1-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