以下是最后第二步收到的错误[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-enforce) on project cookbook-connector: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:[ERROR] Detected JDK Version: 1.8.0-77 is not in the allowed range [1.7,1.8).我尝试将POM.xml更改为[1.7,1.9)这样的POM位于"mule-cookbook-parent"下除了这个标记为存档"的POM之外,没有其他POM指向jdk范围真的不知道从这里去哪里.请帮忙. pC 解决方案 mule-cookbook有一个子模块cookbook-connector,该子模块使用DevKit 3.7.2.这里的问题是 DevKit 3.7.x与JDK 1.8不兼容,但DevKit 3.8.x与JDK 1.8不兼容. 因此,您可以使用Java 1.7编译mule-cookbook,或者修改cookbook-connector项目的POM以使用最新的DevKit:<parent> <groupId>org.mule.tools.devkit</groupId> <artifactId>mule-devkit-parent</artifactId> <version>3.8.2</version></parent>pull this from this directory and perform a maven buildgit clone https://github.com/mulesoft/mule-cookbook.gitThe following is the error received towards the 2nd last step[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-enforce) on project cookbook-connector: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:[ERROR] Detected JDK Version: 1.8.0-77 is not in the allowed range [1.7,1.8).I have tried to change POM.xml to [1.7, 1.9)such POM is located under "mule-cookbook-parent"There is no other POM pointing to the jdk range except this POM which is tagged as "archive"Really have no idea where to go from here. Please help.pC 解决方案 The mule-cookbook has a sub-module, cookbook-connector, that uses DevKit 3.7.2. The problem here is that DevKit 3.7.x is not compatible with JDK 1.8 but DevKit 3.8.x is. So, either you use Java 1.7 to compile the mule-cookbook, or you modify the POM of the cookbook-connector project to use the latest DevKit:<parent> <groupId>org.mule.tools.devkit</groupId> <artifactId>mule-devkit-parent</artifactId> <version>3.8.2</version></parent> 这篇关于Mule Cookbook Anypoint连接器-构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-17 03:17