Maven 遇到的问题

来源:互联网 发布:常青藤软件64位 编辑:程序博客网 时间:2024/05/24 15:41

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>