Not able to find gcm-server jar as an maven artifact

8,544 views
Skip to first unread message

Deepak

unread,
Jul 16, 2012, 9:14:38 AM7/16/12
to andro...@googlegroups.com
Hi All,

Could any one help me getting the maven artifact for GCM jars. As of now it is only available as a part of Android SDK and is fine when we are using ANT as the build tool.
Couldn't see any maven repos hosting these artifacts. If any body knows about such repo, it will be great for me to get the info.

Thanks In Advance

Felipe Leme

unread,
Jul 16, 2012, 4:46:39 PM7/16/12
to andro...@googlegroups.com
Sorry, but we don't provide a maven repository. You will need to add the jars to a local repository.

Sébastien Lorber

unread,
Aug 16, 2012, 12:52:07 PM8/16/12
to andro...@googlegroups.com
Hello,

For those interested i've created a maven repository for this gcm-server.jar

It is hosted here:
https://github.com/slorber/gcm-server-repository
It also handles transitive dependencies like simple-json 1.1 which is used by the gcm-server.jar


It it's a problem for Google let me know but i think i distribute the software without any infraction.

Bye

Tobse

unread,
Aug 17, 2012, 5:46:51 AM8/17/12
to andro...@googlegroups.com
Hi  Sébastien,

thanks for the maven repository for gcm. Unfortunately the link https://raw.github.com/slorber/gcm-server-repository/master/releases/ seems to be unreachable. Mavan cant resolve the gm_server from this repo.

Sébastien Lorber

unread,
Aug 17, 2012, 6:38:03 AM8/17/12
to andro...@googlegroups.com
Can you try with this ?

        <repository>
            <id>gcm-server-repository</id>
        </repository>



For me it works fine:

With both urls:

        <repository>
            <id>gcm-server-repository</id>
        </repository>

        <repository>
            <id>gcm-server-repository</id>
        </repository>

It works while i just deleted the artifacts from my local repository

If someone else can test, please tell me if it works :)





First had troubles to install my repository because of a mirror setting in my settings.xml

        <mirror>
            <id>nexus-public</id>
            <mirrorOf>*</mirrorOf>
            <url>http://my-entreprise-nexus/xxx</url>
        </mirror>

If you also have a setting like that, you may/should ask your architects to add the repository to your entreprise repository manager.
Temporary you can try:
        <mirror>
            <id>nexus-public</id>
            <mirrorOf>*</mirrorOf>
        </mirror>
It works for me.




2012/8/17 Tobse <tobse...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/VUzvnncTEPkJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sébastien Lorber

unread,
Aug 17, 2012, 6:41:24 AM8/17/12
to andro...@googlegroups.com
Btw perhaps you didn't try with maven but just your browser?

See that:

This link should work fine

But when you go to the "root" of the repository
Github shows a 404 error.

It doesn't mean it won't work with maven, it works fine for me, maven knows directly where to find the file by convention and doesn't need any access to the root of the repository.



2012/8/17 Tobse <tobse...@gmail.com>

Micha Roon

unread,
Oct 19, 2012, 12:18:44 PM10/19/12
to andro...@googlegroups.com
It works fine for me too

thanks a lot

Tibi Stibi

unread,
Apr 24, 2013, 4:07:08 AM4/24/13
to andro...@googlegroups.com
after adding this it works fine:

        <dependency>
            <groupId>com.google.android.gcm</groupId>
            <artifactId>gcm-server</artifactId>
            <version>1.0.2</version>
        </dependency>


is 1.0.2 still the latest version?

Tibi Stibi

unread,
Apr 24, 2013, 4:07:49 AM4/24/13
to andro...@googlegroups.com
and this:

      <repository>
            <id>gcm-server-repository</id>
        </repository>



Sébastien Lorber

unread,
Apr 24, 2013, 4:37:15 AM4/24/13
to andro...@googlegroups.com
I don't know.

The 1.0.2 version is not something google communicates about.
I found this version number on the Ant built script of the GCM server library, in the android SDK.

If there is another version available, don't hesitate to open a pull request on the repository, or open an issue.

I don't work anymore with GCM but will be pleased to help the community

Tibi Stibi

unread,
Apr 24, 2013, 5:50:46 AM4/24/13
to andro...@googlegroups.com
nice!

i opened the gcm server jar wich i just recieved and that has in the manifest 1.0.2 so seems fine.

thanks!
Reply all
Reply to author
Forward
0 new messages