--报错
org.pentaho.di.core.exception.KettlePluginException:
Unable to read plugin xml file: {0}:
Type org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface not present
at org.pentaho.di.core.plugins.BasePluginType.registerPluginFromXmlResource(BasePluginType.java:568)
at org.pentaho.di.core.plugins.BasePluginType.registerPlugins(BasePluginType.java:264)
at org.pentaho.di.core.plugins.BasePluginType.registerNatives(BasePluginType.java:226)
at org.pentaho.di.core.plugins.BasePluginType.searchPlugins(BasePluginType.java:183)
at org.pentaho.di.core.plugins.PluginRegistry.registerType(PluginRegistry.java:605)
--原因 kettle9.版本没有这个接口TwoWayPasswordEncoderInterface,
需要导入pentaho-encryption-support-9.3.0.0-428.jar
--解决
1、pom文件增加
<dependency> <groupId>org.pentaho</groupId> <artifactId>pentaho-encryption-support</artifactId> <version>9.3.0.0-428</version> </dependency>
2、输入指令cmd:手动导入.jar至本地maven库【文件位置 D:\1\文件.jar】
mvn install:install-file -Dfile=D:\1\pentaho-encryption-support-9.3.0.0-428.jar -DgroupId=pentaho-kettle -DartifactId=pentaho-encryption-support -Dversion=9.3.0.0-428 -Dpackaging=jar