title: jetty-maven-plugin not adding JNDI datasource resource from Jetty.xml
body: <p>I can't seem to get my datasource added using jetty-maven plugin. There are no errors thrown but when i look in the context the datasource has not been added. I have verified that the path to the file is correct and that its is parsing it(putting in incorrect class names leads to error's). I have tried using the  tag and configuring as a WebAppContext configuration but this file is being completely ignored.</p>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
    &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;8.1.3.v20120416&lt;/version&gt;
    &lt;configuration&gt;
      &lt;jettyXml&gt;somePath/jetty.xml&lt;/jettyXml&gt;
    &lt;/configuration&gt;
    &lt;dependencies&gt;        
      &lt;dependency&gt;
      &lt;groupId&gt;postgresql&lt;/groupId&gt;
      &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
      &lt;version&gt;9.0-801.jdbc4&lt;/version&gt;
    &lt;/dependency&gt;
   &lt;/dependencies&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>jetty.xml</p>
  
  <pre><code>&lt;Configure class="org.eclipse.jetty.server.Server"&gt;
  
  &lt;New id="jdbc/postgres" class="org.eclipse.jetty.plus.jndi.Resource"&gt;
      &lt;Arg&gt;jdbc/postgres&lt;/Arg&gt;
      &lt;Arg&gt;
          &lt;New class="org.postgresql.ds.PGSimpleDataSource"&gt;
              &lt;Set name="User"&gt;postgres&lt;/Set&gt;
              &lt;Set name="Password"&gt;postgres&lt;/Set&gt;
              &lt;Set name="DatabaseName"&gt;myDB&lt;/Set&gt;
              &lt;Set name="ServerName"&gt;localhost&lt;/Set&gt;
              &lt;Set name="PortNumber"&gt;5432&lt;/Set&gt;
          &lt;/New&gt;
      &lt;/Arg&gt;
  &lt;/New&gt;
  </code></pre>
  
  <p></p>
  
  <p>Java Code    </p>
  
  <pre><code>Context ctx = new InitialContext();
  Context context = (Context) ctx.lookup("java:comp/env");
  ds = (DataSource) context.lookup("jdbc/postgres");
  </code></pre>
  
  <p>Any help would be appreciated.</p>