title: Maven throwing error during "mvn site" but works fine with "mvn compile"/"mvn test"
body: <p>Today i was trying to generate the report using the site command through Maven and encountered a problem during the compilation phase.</p>
  
  <h2>ERROR:</h2>
  
  <pre><code>ParseException in /Users/rajesh/Documents/workspace/mobileads/mobileads-core/src/main/java/com/nimbuzz/mobileads/util/AdRequestAnalyticsLogger.java
  Last useful checkpoint: "com.nimbuzz.mobileads.util.AdRequestAnalyticsLogger.logAdOk(AdRequest,String)"
  Encountered " "&gt;" "&gt; "" at line 32, column 55.
  Was expecting one of:
      "boolean" ...
      "byte" ...
      "char" ...
      "double" ...
      "float" ...
      "int" ...
      "long" ...
      "short" ...
      &lt;IDENTIFIER&gt; ...
      "?" ...
      "boolean" ...
      "char" ...
      "byte" ...
      "short" ...
      "int" ...
      "long" ...
      "float" ...
      "double" ...
      &lt;IDENTIFIER&gt; ...
      "?" ...
      "?" ...
      "?" ...
      "?" ...
  </code></pre>
  
  <p>To my surprise when i run the compile or test command the same files compile properly.</p>
  
  <p>Now I have two doubts here</p>
  
  <p>1). When i go to AdRequestAnalyticsLogger.java where it is giving me this problem i could see the code as  </p>
  
  <pre><code>final List&lt;String&gt; toBeLogged = new ArrayList&lt;&gt;(ad.asList());
  </code></pre>
  
  <p>mind it there is not String in tilts after ArrayList.</p>
  
  <p>Now the doubt is,Does java accept the "ArrayList&lt;>" rather then "ArrayList".If it is suppose to be "ArrayList" then how come it is compiling but not working when doing "mvn site".</p>
  
  <p>2). What are the difference between "mvn compile"/"mvn test"/"mvn site"</p>
  
  <p>Regards,
  Rajesh</p>