[ 
https://issues.apache.org/jira/browse/MSHADE-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MSHADE-255:
----------------------------------
    Description: 
{code:xml}
                <executions>
                                    <execution>
                                            <phase>package</phase>
                                            <goals>
                                                    <goal>shade</goal>
                                            </goals>
                                            <!---->
                                            <configuration>
                                                    <relocations>
                                                            <relocation>
                                                                    
<pattern>org.jdom</pattern>
                                                                    
<shadedPattern>my.company.shaded.org.jdom</shadedPattern>
                                                            </relocation>
                                                    </relocations>
                                            </configuration>
                                            <!---->
                                    </execution>
                            </executions>
{code}

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project 
spark-uberjar: Error creating shaded jar: null: IllegalArgumentException -> 
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project 
spark-uberjar: Error creating shaded jar: null
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating 
shaded jar: null
        at 
org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:546)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at 
org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:418)
        at 
org.apache.maven.plugins.shade.DefaultShader.shadeSingleJar(DefaultShader.java:220)
        at 
org.apache.maven.plugins.shade.DefaultShader.shadeJars(DefaultShader.java:181)
        at 
org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:104)
        at 
org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:442)
        ... 22 more
{noformat}

  was:
                <executions>
                                    <execution>
                                            <phase>package</phase>
                                            <goals>
                                                    <goal>shade</goal>
                                            </goals>
                                            <!---->
                                            <configuration>
                                                    <relocations>
                                                            <relocation>
                                                                    
<pattern>org.jdom</pattern>
                                                                    
<shadedPattern>my.company.shaded.org.jdom</shadedPattern>
                                                            </relocation>
                                                    </relocations>
                                            </configuration>
                                            <!---->
                                    </execution>
                            </executions>



[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project 
spark-uberjar: Error creating shaded jar: null: IllegalArgumentException -> 
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project 
spark-uberjar: Error creating shaded jar: null
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating 
shaded jar: null
        at 
org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:546)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at 
org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:418)
        at 
org.apache.maven.plugins.shade.DefaultShader.shadeSingleJar(DefaultShader.java:220)
        at 
org.apache.maven.plugins.shade.DefaultShader.shadeJars(DefaultShader.java:181)
        at 
org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:104)
        at 
org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:442)
        ... 22 more



> IllegalArgumentException on relocating class
> --------------------------------------------
>
>                 Key: MSHADE-255
>                 URL: https://issues.apache.org/jira/browse/MSHADE-255
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>         Environment: $ mvn -version
> Apache Maven 3.3.9
> Maven home: /usr/share/maven
> Java version: 1.8.0_121, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-72-generic", arch: "amd64", family: "unix"
> [INFO] Plugin Resolved: maven-shade-plugin-3.0.0.jar
> [INFO]     Plugin Dependency Resolved: maven-plugin-api-3.0.jar
> [INFO]     Plugin Dependency Resolved: maven-model-3.0.jar
> [INFO]     Plugin Dependency Resolved: maven-core-3.0.jar
> [INFO]     Plugin Dependency Resolved: maven-artifact-3.0.jar
> [INFO]     Plugin Dependency Resolved: plexus-utils-3.0.24.jar
> [INFO]     Plugin Dependency Resolved: maven-artifact-transfer-0.9.0.jar
> [INFO]     Plugin Dependency Resolved: asm-5.1.jar
> [INFO]     Plugin Dependency Resolved: asm-commons-5.1.jar
> [INFO]     Plugin Dependency Resolved: jdom-1.1.3.jar
> [INFO]     Plugin Dependency Resolved: maven-dependency-tree-2.2.jar
> [INFO]     Plugin Dependency Resolved: commons-io-2.5.jar
> [INFO]     Plugin Dependency Resolved: jdependency-1.1.jar
> [INFO]     Plugin Dependency Resolved: guava-19.0.jar
>            Reporter: eliuser2
>            Priority: Blocker
>
> {code:xml}
>                 <executions>
>                                     <execution>
>                                             <phase>package</phase>
>                                             <goals>
>                                                     <goal>shade</goal>
>                                             </goals>
>                                             <!---->
>                                             <configuration>
>                                                     <relocations>
>                                                             <relocation>
>                                                                     
> <pattern>org.jdom</pattern>
>                                                                     
> <shadedPattern>my.company.shaded.org.jdom</shadedPattern>
>                                                             </relocation>
>                                                     </relocations>
>                                             </configuration>
>                                             <!---->
>                                     </execution>
>                             </executions>
> {code}
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project 
> spark-uberjar: Error creating shaded jar: null: IllegalArgumentException -> 
> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on 
> project spark-uberjar: Error creating shaded jar: null
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>       at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating 
> shaded jar: null
>       at 
> org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:546)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>       ... 20 more
> Caused by: java.lang.IllegalArgumentException
>       at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>       at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>       at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>       at 
> org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:418)
>       at 
> org.apache.maven.plugins.shade.DefaultShader.shadeSingleJar(DefaultShader.java:220)
>       at 
> org.apache.maven.plugins.shade.DefaultShader.shadeJars(DefaultShader.java:181)
>       at 
> org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:104)
>       at 
> org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:442)
>       ... 22 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to