Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:16:12+00:00 2026-06-09T22:16:12+00:00

I work on an industrialized large maven project, and on an application module, I

  • 0

I work on an industrialized large maven project, and on an application module, I need to be able to send push notifications to Android (with new Google Cloud Messaging).

It seems google provide themselves the server-side library to send the notifications, and according to the mailing list they do not provide any maven repository.

The first step mentionned in the google documentation is:

Copy the gcm-server.jar file from the SDK's gcm-server/dist directory to your server classpath.

I’m not going to do that so i’ve added the jar to my local repository and will add it to our enterprise Nexus.

mvn install:install-file
 -Dfile=gcm-server.jar
 -Dsources=gcm-server-sources.jar
 -DgroupId=com.google.android.gcm
 -DartifactId=gcm-server
 -Dversion=r3
 -DgeneratePom=true
 -Dpackaging=jar

But i’ve just noticed that the library has dependencies (simple-json, mockito and junit).
It’s not precised if they are runtime or tests but i guess only simple-json is used at runtime.
I think retrieving the GCM dependency from our Nexus should also permit to retrieve the transitive dependencies like this simple-json lib right?

Thus what am i supposed to do? Should i create on my own a pom file for a project i don’t own, and then import the project to my maven repository with -DpomFile=my-custom-pom.xml?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:16:13+00:00Added an answer on June 9, 2026 at 10:16 pm

    Finally i’ve ended creating my own pom.

    I’ve created a maven repository on github here:
    https://github.com/slorber/gcm-server-repository

    Thus anyone can download this jar with maven and also its transitive dependencies.

    I’ve added the files/commands so that you know how i’ve done.

    Add repository:

    <repository>
        <id>gcm-server-repository</id>
        <url>https://raw.githubusercontent.com/slorber/gcm-server-repository/master/releases/</url>
    </repository>
    

    And dependency:

    <dependency>
        <groupId>com.google.android.gcm</groupId>
        <artifactId>gcm-server</artifactId>
        <version>1.0.2</version>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Work on C# Desktop project,I have an account on paypal ,From my desktop application
Work on C#, in one of my application I need to get the SQL
Work on C#.In my application several time need to select\collect datafrom DB.Fro this task
I work for a very large organization that is looking for new ideas. Currently
I work on a large project where many functions are not used. I would
i work on my Ruby on Rails application and i'm new to Rails. I
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
Work on a support helpdesk. New tickets come in and records are created in
Work on this small test application to learn threading/locking. I have the following code,
I work on an ASP.Net project which we build with VS 2010. We use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.