title: Check if artifact or dependency exist in a private repository
body: <p>This is my POM file that generate a <strong>JAR artifact</strong> and it is <strong>stored in a private repository</strong> with <strong>Nexus Repository</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;org.home.mac&lt;/groupId&gt;
    &lt;artifactId&gt;hyper-dev&lt;/artifactId&gt;
    &lt;version&gt;0.0.1&lt;/version&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
  
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.7&lt;/source&gt;
            &lt;target&gt;1.7&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;  
    &lt;/build&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.home.mac&lt;/groupId&gt;
          &lt;artifactId&gt;hyper-test-linux&lt;/artifactId&gt;
          &lt;version&gt;0.3.5&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I want to check two things:</p>
  
  <ul>
  <li>If the <strong>artifact</strong> that I am going to install <strong>hyper-dev-0.0.1</strong> exists in my private maven repository.</li>
  <li>If the dependency with <strong>artifactID: hyper-test-linux-0.3.5</strong> exists in my private maven repository.</li>
  </ul>
  
  <p>Is it possible?</p>