从github把master(https://github.com/pentaho/pentaho-kettle.git)拉下来后,执行mvn clean comple -X,报错:Could not find artifact org.pentaho:pentaho-ce-jar-parent-pom
首先要保证settings.xml和settings-secure.xml放到用户目录.m目录下:
这个在代码的readme文件里面有写,但是只写了settings.xml,坑爹:
https://raw.githubusercontent.com/pentaho/maven-parent-poms/master/maven-support-files/settings.xml
https://raw.githubusercontent.com/pentaho/maven-parent-poms/master/maven-support-files/settings-security.xml
然后保证你切换到正确的版本上:9.4.0.0-343, 9.3.0.0-428, 9.2.0.0-290 and 8.3.0.0-371
只有这些版本的依赖才是不缺的,这是官方人员的答复:
https://community.hitachivantara.com/discussion/cant-build-pentaho-kettle-10200
我切换到8.3.0.0-371,项目编译就正常了;