source-1.5 中不支持 diamond運算符
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
load *.p12 file DER input, Integer tag error
https://johnnywey.wordpress.com/2009/11/04/careful-with-your-binary-resources/
To fix this, I created a subdirectory off of src/main/resources (I called it binary) and added a manual exclusion in the pom.xml file. The resulting XML looks as follows:
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/binary/*</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/binary</directory>
</resource>
</resources>