Java - Ignore warnings on directory/package level

i only find this way to solve the issue now:

add @SuppressWarnings("rawtypes") to your method or variable like:

@SuppressWarnings("rawtypes")
private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();

I would recommend adding the @SuppressWarnings to the auto-generated code after its generated:

<plugin>
   <groupId>com.google.code.maven-replacer-plugin</groupId>
   <artifactId>maven-replacer-plugin</artifactId>
    <version>1.3.2</version>
   <executions>
    <execution>
     <phase>prepare-package</phase>
     <goals>
     <goal>replace</goal>
     </goals>
     </execution>
    </executions>
    <configuration>
    <includes>
      <include>target/generated-sources/apache/blahblah//*.java</include>
    </includes>

   <regex>true</regex>
   <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
   </regexFlags>

  <replacements>
   <replacement>
     <token>^(@SuppressWarnings\(.*?\)\s+)?public class</token>
   <value>@SuppressWarnings("all") public class</value>
    </replacement>
   </replacements>
  </configuration>
</plugin>

The configuration above would essentially do this through maven. If you have other build tools you would do something similar.