• kettle 9.2源码打包和idea环境启动及常见错误


    一:源码打包
    这里为什么是kettle 9.2,因为kettle 9.3+需要jdk11
    这里直接去下载kettle的源码,tag=9.2.0.4-R。这里需要自己搭建一个nexus仓库,因为有些包从kettle的仓库里面下载不下来。

    nexus新建仓库代理, 记得加到public里面去
    在这里插入图片描述

    https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/
    
    • 1

    完整的settings.xml

    
    
    
    
    
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
      
    
      <localRepository>D:/tools/maven/apache-maven-3.6.3/conf/repositorylocalRepository>
    
      
    
      
    
      
      <pluginGroups>
        
    
        <pluginGroup>org.pentaho.maven.pluginspluginGroup>
        <pluginGroup>com.pentaho.maven.pluginspluginGroup>
        <pluginGroup>com.github.spotbugspluginGroup>
      pluginGroups>
    
      
      <proxies>
        
      proxies>
    
      
      <servers>
        
    
        
    
        <server>
          <id>pentaho-publicid>
          <username>devreaduserusername>
          <password>{zIMyJWfHKfoHiBJAVsAgW4E5BcJzR+nhTtgPy0J+/rs=}password>
        server>
      servers>
    
      
      <mirrors>
        
    
        <mirror>
          <id>mirrorIdid>
          <mirrorOf>*mirrorOf>
          <name>maven-publicname>
          <url>http://172.16.30.203:8081/repository/maven-public/url>
        mirror>
      mirrors>
    
      
      <profiles>
        
    
        
    
        <profile>
          <id>nexusid>
          <repositories>
            <repository>
              <id>nexus-snapshotsid>
              <url>http://172.16.30.203:8081/repository/maven-snapshots/url>
              <releases>
                <enabled>falseenabled>
              releases>
              <snapshots>
                <enabled>trueenabled>
                <updatePolicy>alwaysupdatePolicy>
              snapshots>
            repository>
            <repository>
              <id>nexus-releasesid>
              <url>http://172.16.30.203:8081/repository/maven-releases/url>
              <releases>
                <enabled>trueenabled>
              releases>
              <snapshots>
                <enabled>falseenabled>
              snapshots>
            repository>
          repositories>
          <pluginRepositories>
            <pluginRepository>
              <id>snapshotsid>
              <url>http://172.16.30.203:8081/repository/maven-snapshots/url>
              <releases>
                <enabled>falseenabled>
              releases>
              <snapshots>
                <enabled>trueenabled>
                <updatePolicy>alwaysupdatePolicy>
              snapshots>
            pluginRepository>
            <pluginRepository>
              <id>nexus-releasesid>
              <url>http://172.16.30.203:8081/repository/maven-releases/url>
              <releases>
                <enabled>trueenabled>
              releases>
              <snapshots>
                <enabled>falseenabled>
              snapshots>
            pluginRepository>
          pluginRepositories>
        profile>
    
      profiles>
    
      
    
      <activeProfiles>
        <activeProfile>nexusactiveProfile>
      activeProfiles>
    
    settings>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332

    idea导入kettle,等待下载maven依赖,慢慢等,需要很长的时间。

    在这里插入图片描述
    这个包在kettle的远程仓库也没有,可以直接去掉
    在这里插入图片描述

    有些包在kettle的远程仓库有,但是下载不下来,解决方案是手动下载,然后上传到自己的maven仓库
    在这里插入图片描述
    在这里插入图片描述
    这里需要删除本地的文件,上传再重新下载
    在这里插入图片描述
    maven依赖下载成功了,idea上maven依赖还是红色的,这是idea的bug,解决方案为pom.xml去掉依赖,maven刷新,再加上依赖,maven刷新。

    maven依赖下载成功,打包一般没问题
    在这里插入图片描述
    在这里插入图片描述
    解压,双击Spoob.bat即可使用

    在这里插入图片描述

    二:idea开发环境启动

    新建application
    在这里插入图片描述

    • 错误一
    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
    	no swt-gtk-4623 in java.library.path
    	no swt-gtk in java.library.path
    	Can't load library: C:\Users\Administrator\.swt\lib\win32\x86_64\swt-gtk-4623.dll
    	Can't load library: C:\Users\Administrator\.swt\lib\win32\x86_64\swt-gtk.dll
    
    • 1
    • 2
    • 3
    • 4
    • 5

    解决办法:

    在这里插入图片描述
    然后在ui的pom.xml添加依赖

    <dependency>
          <groupId>com.swtgroupId>
          <artifactId>swtartifactId>
          <version>1.0.0version>
          <scope>systemscope>
          <systemPath>${project.basedir}/lib/swt.jarsystemPath>
    dependency>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    在这里插入图片描述

    • 错误二:
    org.pentaho.di.core.exception.KettleException: 
    Unable to find plugin with ID 'Kettle'.  If this is a test, make sure kettle-core tests jar is a dependency.  If this is live make sure a kettle-password-encoder-plugins.xml exits in the classpath
    
    	at org.pentaho.di.core.encryption.Encr.init(Encr.java:61)
    	at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:124)
    	at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:80)
    	at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:134)
    	at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:101)
    	at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:82)
    	at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:643)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    在这里插入图片描述

    • 错误三:
    2022/11/23 18:23:44 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:23:42.892 by Administrator) : Error initializing transformation
    2022/11/23 18:23:44 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:23:42.892 by Administrator) : org.pentaho.ui.xul.XulException: Can not locate Xul document [ui/spoon.xul]
    2022/11/23 18:23:44 - General - 	at org.pentaho.ui.xul.impl.AbstractXulLoader.findDocument(AbstractXulLoader.java:512)
    2022/11/23 18:23:44 - General - 	at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:229)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.init(Spoon.java:870)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.createContents(Spoon.java:9352)
    2022/11/23 18:23:44 - General - 	at org.eclipse.jface.window.Window.create(Window.java:431)
    2022/11/23 18:23:44 - General - 	at org.eclipse.jface.window.Window.open(Window.java:788)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9383)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)
    2022/11/23 18:23:44 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:23:42.892 by Administrator) : Error starting Spoon shell
    2022/11/23 18:23:44 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:23:42.892 by Administrator) : java.lang.NullPointerException
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.init(Spoon.java:923)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.createContents(Spoon.java:9352)
    2022/11/23 18:23:44 - General - 	at org.eclipse.jface.window.Window.create(Window.java:431)
    2022/11/23 18:23:44 - General - 	at org.eclipse.jface.window.Window.open(Window.java:788)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9383)
    2022/11/23 18:23:44 - General - 	at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18

    在这里插入图片描述

    • 错误四
    2022/11/23 18:27:07 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:27:05.372 by Administrator) : Error starting Spoon shell
    2022/11/23 18:27:07 - General - ERROR (version Unknown, build 0 from 2022/11/23 18:27:05.372 by Administrator) : java.lang.NoClassDefFoundError: org/jaxen/JaxenException
    2022/11/23 18:27:07 - General - 	at org.pentaho.ui.xul.impl.AbstractXulLoader.preProcess(AbstractXulLoader.java:357)
    2022/11/23 18:27:07 - General - 	at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:113)
    2022/11/23 18:27:07 - General - 	at org.pentaho.ui.xul.swt.SwtXulLoader.loadXul(SwtXulLoader.java:128)
    2022/11/23 18:27:07 - General - 	at org.pentaho.ui.xul.swt.SwtXulLoader.loadXul(SwtXulLoader.java:122)
    2022/11/23 18:27:07 - General - 	at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:239)
    2022/11/23 18:27:07 - General - 	at org.pentaho.di.ui.spoon.Spoon.init(Spoon.java:870)
    2022/11/23 18:27:07 - General - 	at org.pentaho.di.ui.spoon.Spoon.createContents(Spoon.java:9352)
    2022/11/23 18:27:07 - General - 	at org.eclipse.jface.window.Window.create(Window.java:431)
    2022/11/23 18:27:07 - General - 	at org.eclipse.jface.window.Window.open(Window.java:788)
    2022/11/23 18:27:07 - General - 	at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9383)
    2022/11/23 18:27:07 - General - 	at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)
    2022/11/23 18:27:07 - General - Caused by: java.lang.ClassNotFoundException: org.jaxen.JaxenException
    2022/11/23 18:27:07 - General - 	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    2022/11/23 18:27:07 - General - 	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    2022/11/23 18:27:07 - General - 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
    2022/11/23 18:27:07 - General - 	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18

    ui添加依赖
    在这里插入图片描述

    <dependency>
          <groupId>jaxengroupId>
          <artifactId>jaxenartifactId>
    dependency>
    
    • 1
    • 2
    • 3
    • 4

    启动成功

    在这里插入图片描述

  • 相关阅读:
    Flask 学习-55.文件上传功能开发
    Lamda表达式的推演过程
    JAVA学习笔记(二)
    走出迷宫的最短路径
    <SQL编程工具MySQL、SQLyog安装及环境配置教程>——《SQL》
    【LittleXi】地址空间三题
    算法导论第16章 贪心算法之活动选择
    企业为什么要做等保?不做等保有什么后果?
    Python 教程之将网页内容专为语音mp3
    二、一起学习Eclipse 安装(Neon 版本)
  • 原文地址:https://blog.csdn.net/admin_15082037343/article/details/128000768