title: Maven ignoring provided scope
body: <p>I have a EAR with a number of EJB dependencies. 2 of these have a provided scope dependency to the glassfish-embedded-all jar. However when I do a mvn install on my local machine or when the application is build through maven on hudson the ear always contains the glassfish-embedded-all jar.</p>
  
  <p>e.g. DataAccess-ejb with provided dependency</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;org.glassfish.extras&lt;/groupId&gt;
       &lt;artifactId&gt;glassfish-embedded-all&lt;/artifactId&gt;
       &lt;version&gt;3.0&lt;/version&gt;
       &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Application-ear with ejb dependency</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;com.xxx.yyy&lt;/groupId&gt;
       &lt;artifactId&gt;DataAccess-ejb&lt;/artifactId&gt;
       &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
       &lt;type&gt;ejb&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Any ideas what I am doing wrong or possible suggestions?</p>
  
  <p>Cheers,</p>
  
  <p>James</p>