【发布时间】:2017-08-21 19:46:16
【问题描述】:
我已将以下依赖项添加到 Jenkins 插件中
<!-- https://mvnrepository.com/artifact/org.apache.ant/ant -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.1</version>
</dependency>
当我执行mvn hpi:run时出现以下错误
[INFO] --- maven-enforcer-plugin:1.4.2.jenkins-1:enforce (display-info) @ osf-builder-suite-for-sfcc-deploy ---
[INFO] Restricted to JDK 1.7 yet org.apache.ant:ant:jar:1.10.1:compile contains org/apache/tools/ant/AntClassLoader$ResourceEnumeration.class targeted to JDK 1.8
[INFO] Restricted to JDK 1.7 yet org.apache.ant:ant-launcher:jar:1.10.1:compile contains org/apache/tools/ant/launch/AntMain.class targeted to JDK 1.8
知道发生了什么,我能做什么?
【问题讨论】: