shading javajar-xerces问题

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

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

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>2.4.1</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                 <artifactSet>
                     <excludes>
                         <exclude>xerces:xercesImpl:jar:</exclude>
                     </excludes>
                 </artifactSet>
                 <relocations>
                     <relocation>
                         <pattern>org.apache.xerces.impl.*</pattern>
                             <shadedPattern>org.shaded.xerces.impl.*</shadedPattern>
                     </relocation>
                 </relocations>
             </configuration>
         </execution>
     </executions>
 </plugin>

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

[INFO] ------------------------------------------------------------------------
[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上编译。

暂无答案!

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

相关问题