shading javajar-xerces问题

omqzjyyz  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(279)

我正在运行hadoop mapreduce作业。这个 xerces 我使用的是hadoop,而hadoop发行版看起来不同。我想遮住我的眼睛 xerces . 我该怎么做?
这样做:

  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-shade-plugin</artifactId>
  4. <version>2.4.1</version>
  5. <executions>
  6. <execution>
  7. <phase>package</phase>
  8. <goals>
  9. <goal>shade</goal>
  10. </goals>
  11. <configuration>
  12. <artifactSet>
  13. <excludes>
  14. <exclude>xerces:xercesImpl:jar:</exclude>
  15. </excludes>
  16. </artifactSet>
  17. <relocations>
  18. <relocation>
  19. <pattern>org.apache.xerces.impl.*</pattern>
  20. <shadedPattern>org.shaded.xerces.impl.*</shadedPattern>
  21. </relocation>
  22. </relocations>
  23. </configuration>
  24. </execution>
  25. </executions>
  26. </plugin>

给出了这个错误。谷歌搜索也没什么帮助:

  1. [INFO] ------------------------------------------------------------------------
  2. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.1:shade (default) on project dsl-mapreduce: Error creating shaded jar: Error in ASM processing class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class: 48188 -> [Help 1]

我没有使用 com/ibm/icu/impl 任何地方和 icu 或者 icu4j 不存在于 mvn dependency:tree 也。
编辑:jar在java8上编译,hadoop在java7上编译。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题