title: Skipping Maven Test Dependency
body: <p>I am working on a project that use maven for building. What I am trying to do is to skip the test dependency. Basically running the maven build without the presence of artifact in my maven repository.</p>
  
  <p>eg</p>
  
  <pre><code>&lt;artifactId&gt;example&lt;/artifactId&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  </code></pre>
  
  <p>This is from the pom file of my project and I have to maven build my project without having artifact <em>example</em>.</p>
  
  <p>I have searched for solution such as use "-DskipTests=true" or "-Dmaven.test.skip=true". In my case they did skip the running of the tests but it still complains missing dependency file.</p>
  
  <p>Does anyone know a way to run maven build without having to have test artifact in the maven repository?</p>
  
  <p>Thanks.</p>