title: maven compilation error : package com.jayway.restassured does not exist
body: <p>I created maven project in eclipse and also add dependency Rest-Assured into pom.xml file. When right click project in Eclipse to 'Run As' > Maven test, it pops out follow error </p>
  
  <p>error: package com.jayway.restassured does not exist</p>
  
  <p>Here are snippet of my pom.xml file:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.jayway.restassured&lt;/groupId&gt;
      &lt;artifactId&gt;rest-assured&lt;/artifactId&gt;
      &lt;version&gt;2.4.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt; 
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.jayway.restassured&lt;/groupId&gt;
      &lt;artifactId&gt;json-schema-validator&lt;/artifactId&gt;
      &lt;version&gt;2.4.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  </code></pre>
  
  <p>I also change scope 'complile' to 'test' and got same error. </p>
  
  <p>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project dpmatest: Compilation failure: Compilation failure:</p>
  
  <p>On another project, by change scope 'test' to 'compile' I have no issue to compile with Rest-Assured package. </p>
  
  <p>Can someone help me? and explain difference between scope 'test' vs 'compile'.</p>
  
  <p>Thanks.</p>