title: How can I disable warnings on package level in Eclipse?
body: <p>I have a folder of source files (say <code>src/main/java</code>), which contains two super-packages:</p>
  
  <ul>
  <li><code>com.blah.generated</code></li>
  <li><code>com.blah.software</code></li>
  </ul>
  
  <p>The <code>com.blah.generated</code> code is generated by a tool which cannot be run at every compilation and is checked in to version control. We never change it, it is occasionally re-generated when there's a new dependency on a new release.</p>
  
  <p>The generated code has 100s of warnings, which I want to get rid of. I don't have access to the generator code, nor can I relocate the package to a different folder.</p>
  
  <p>Obviously I have a source folder pointing to <code>src/main/java</code>. I tried to exclude the <code>com.blah.generated</code> package, but then the <code>com.blah.software</code> using it fails to compile.</p>
  
  <p>I tried adding a second source folder pointing to the same folder, and excluding <code>com.blah.software</code> so that I can turn on "Ignore optional compile problems", but Eclipse complains (however there's no overlapping between the two folders):</p>
  
  <blockquote>
    <p>Build path contains duplicate entry: 'src/main/java' for project 'blah'</p>
  </blockquote>
  
  <p>I also tried filtering the <code>Problems</code> view to</p>
  
  <blockquote>
    <p>Include selected element and its children EXCEPT the <code>com.blah.generated</code>.</p>
  </blockquote>
  
  <p>but there's no such option.</p>