title: Maven compile error with using Java Generics
body: <p>Im using Java 8 and have the following code:</p>
  
  <pre><code>public WeatherDTO(Map&lt;?,?&gt; mappedJsonData) {
      if (mappedJsonData == null || mappedJsonData.isEmpty()) {
          return;
      }
  
      List&lt;?&gt; weather = (List&lt;?&gt;)mappedJsonData.get("weather");
      if (weather != null &amp;&amp; !weather.isEmpty()) {
          this.weather = (String) ((Map&lt;?,?&gt;)weather.get(0)).get("description");
      }
  
      Map&lt;?,?&gt; jsonMain = (Map&lt;?,?&gt;)mappedJsonData.get("main");
      if (jsonMain != null &amp;&amp; !jsonMain.isEmpty()) {
          this.temperature = (double)jsonMain.get("temp") - 273.0;
          this.humidity = (int)jsonMain.get("humidity");
      }
  }
  </code></pre>
  
  <p>This code works fine when im running the web app within Eclipse and embedded Tomcat. There is also no Problem shown in Eclipse Problems view.</p>
  
  <p>But when im starting a maven compile from my shell/bash im getting the following error:</p>
  
  <p>[ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------</p>
  
  <p>[ERROR] /home/xxx/xxx/xxx/src/main/java/xxx/xxx/xxx/weather/WeatherDTO.java:[52,64] incompatible types: capture#1 of ? cannot be converted to double</p>
  
  <p>[ERROR] /home/xxx/xxx/xxx/src/main/java/xxx/xxx/xxx/weather/WeatherDTO.java:[53,58] incompatible types: capture#2 of ? cannot be converted to int</p>
  
  <p>Does anybody have a idea what im doing wrong?
  The maven compiler plugin seems to be up to date and my JAVA_HOME points to a Java 8 version.</p>
  
  <p>Snippet from the pom.xml</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;inherited&gt;true&lt;/inherited&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${java.version}&lt;/source&gt;
                  &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                  &lt;showWarnings&gt;false&lt;/showWarnings&gt;
                  &lt;showDeprecation&gt;false&lt;/showDeprecation&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Configuration of java.version is 1.8; Maven is 3.0.4.</p>