Unverified 提交 ba5fccd4 authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #664 from LingMan/pom-update

Update POM file
...@@ -206,11 +206,13 @@ ...@@ -206,11 +206,13 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<version>1.10</version> <version>3.0.0</version>
<executions> <executions>
<execution> <execution>
<phase>generate-test-sources</phase> <phase>generate-test-sources</phase>
<goals><goal>add-test-source</goal></goals> <goals>
<goal>add-test-source</goal>
</goals>
<configuration> <configuration>
<sources> <sources>
<source>src/tools</source> <source>src/tools</source>
...@@ -219,53 +221,51 @@ ...@@ -219,53 +221,51 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Maven requires at least JRE 1.7 but we want to build with JDK 1.6 --> <!-- Make sure neither we nor one of our dependencies uses anything outside JDK 1.7 -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.1</version> <version>3.0.0-M1</version>
<executions> <executions>
<execution> <execution>
<id>check-java-version</id>
<goals> <goals>
<goal>toolchain</goal> <goal>enforce</goal>
</goals> </goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>1.6</version>
</jdk>
</toolchains>
</configuration>
</plugin>
<!-- Make sure we are not using anything outside JDK 1.6 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.15</version>
<executions>
<execution>
<id>check-java-api</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>1.7</maxJdkVersion>
</enforceBytecodeVersion>
<checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
<signature> <signature>
<groupId>org.codehaus.mojo.signature</groupId> <groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java16</artifactId> <artifactId>java17</artifactId>
<version>1.1</version> <version>1.0</version>
</signature> </signature>
</checkSignatureRule>
</rules>
<fail>true</fail>
</configuration> </configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-beta-6</version>
</dependency>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-enforcer-rule</artifactId>
<version>1.16</version>
</dependency>
</dependencies>
</plugin> </plugin>
<!-- Disable surefire since we don't use Junit -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version> <version>2.20.1</version>
<configuration> <configuration>
<includes> <includes>
<include>TestAllJunit.java</include> <include>TestAllJunit.java</include>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论