title: How can I use google play services in a maven project?
body: <p>Somebody can give me a step by step tutorial about how can I use google play services in a maven project? 
  I've added two dependencies</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.google.android.gms&lt;/groupId&gt;
      &lt;artifactId&gt;google-play-services&lt;/artifactId&gt;
      &lt;version&gt;4&lt;/version&gt;
      &lt;type&gt;apklib&lt;/type&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.google.android.gms&lt;/groupId&gt;
      &lt;artifactId&gt;google-play-services&lt;/artifactId&gt;
      &lt;version&gt;4&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>The apklib and jar appear in maven repository but the com.google.android.gms.R class is not generated. </p>
  
  <p>I receive NoClassDefFoundError. How can I put the com.google.android.gms in the gen folder?</p>