title: import google-sample-code from github to java app
body: <p>I would like to use the following function from <a href="https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/bigquery/src/main/java/com/google/cloud/bigquery/samples/BigQueryUtils.java" rel="nofollow noreferrer">google java-docs-samples</a> in my code like this:</p>
  
  <pre><code>BigQueryUtils.getPages(...)
  </code></pre>
  
  <p>I added in pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;google-cloud-bigquery&lt;/artifactId&gt;
      &lt;version&gt;0.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and in my code:</p>
  
  <pre><code>import com.google.cloud.bigquery.samples;
  
  public class MyClass {
  
    public static void method() {
      BigQueryUtils.getPages(...);
    }
  </code></pre>
  
  <p>i get this message:</p>
  
  <pre><code> The import com.google.cloud.bigquery.samples cannot be resolved
  </code></pre>
  
  <p>how can I  import above libraries in my project?</p>
  
  <p><strong>EDIT</strong>
  I also tried adding this on the pom, didnt help</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;doc-samples&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I get this message in the pom:</p>
  
  <pre><code>Missing artifact com.google.cloud:doc-samples:jar:1.0.0
  </code></pre>