Maven repository for Google-Cloud-Messaging server library
This permits to manage the Google GCM library with Maven. The gcm-server.jar provided with the Android SDK, used by servers to send push notification to Android devices, is not hosted in any official Maven repository. This is why a created this personal repository. The library has a dependency (simple-json) which is handled in the pom i've written.
Usage
Add the repository to your maven configuration:
<repository>
<id>gcm-server-repository</id>
<url>https://raw.github.com/slorber/gcm-server-repository/master/releases/</url>
</repository>
And then add the dependency
<dependency>
<groupId>com.google.android.gcm</groupId>
<artifactId>gcm-server</artifactId>
<version>1.0.2</version>
</dependency>
If you build your client with Android you can also add the client dependency, thanks to cjbest:
<dependency>
<groupId>com.google.android.gcm</groupId>
<artifactId>gcm-client</artifactId>
<version>1.0.2</version>
</dependency>
I've only deployed the 1.0.2 version, which is the version i've found in the ant script associated with the gcm-server sources.
Contribute
If you need another version, of gcm-server which is not already hosted on this server, don't hesitate to create a pull request.
You can see everything i've used here: https://github.com/slorber/gcm-server-repository/deployer
- The source and jar files
- The pom
- A script to install the files to your local maven repository
The pom is required to handle the dependency of the project (simple-json 1.1 here). The script deploys files to ~/.m2/repository/com/google/android/gcm/gcm-server/1.0.2/ You just need to copy this files in your gcm-server-repository/releases/com/google/android/gcm/gcm-server/1.0.2/ and create your pull request
How to build your own Github repository: http://cemerick.com/2010/08/24/hosting-maven-repos-on-github/
LICENSE
This repository respects the Apache License distribution rules. No original files were modified
출처 - https://github.com/slorber/gcm-server-repository
'Android > GCM' 카테고리의 다른 글
GCM 특징 및 설정 (0) | 2013.01.18 |
---|---|
android - 아이폰, 안드로이드 통합 푸시 서버 만들기 (3) | 2012.09.11 |
android - C2DM 이용하기 (0) | 2012.09.11 |