title: Install jar with dependencies to maven repository (Android gcm-server push library)
body: <p>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).</p>
  
  <p>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.</p>
  
  <p>The first step mentionned in the google documentation is:</p>
  
  <pre><code>Copy the gcm-server.jar file from the SDK's gcm-server/dist directory to your server classpath.
  </code></pre>
  
  <p>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.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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?</p>
  
  <p>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 <code>-DpomFile=my-custom-pom.xml</code>?</p>
  
  <p>Thanks</p>