You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bram Bouwens (JIRA)" <ji...@codehaus.org> on 2015/03/03 21:56:18 UTC

[jira] (MSHADE-174) Unable to shade Java 8 jarfiles with static interface methods using minimizeJar

    [ https://jira.codehaus.org/browse/MSHADE-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364424#comment-364424 ] 

Bram Bouwens commented on MSHADE-174:
-------------------------------------

I just added a single "IntStream.range(0, colLength).parallel().forEach(row -> { ... });"
line to my code, and now the shade plugin no longer works.

In other words: one cannot use Java 8 features together with this plugin?
I'm afraid I don't understand enough about this plugin. I do see 
{code}
% mvn dependency:resolve-plugins
...
[INFO] Plugin Resolved: plexus-component-metadata-1.5.5.jar
[INFO]     Plugin Dependency Resolved: plexus-container-default-1.5.5.jar
[INFO]     Plugin Dependency Resolved: plexus-component-annotations-1.5.5.jar
[INFO]     Plugin Dependency Resolved: plexus-utils-1.4.5.jar
[INFO]     Plugin Dependency Resolved: qdox-1.9.2.jar
[INFO]     Plugin Dependency Resolved: jdom-1.0.jar
[INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar
[INFO]     Plugin Dependency Resolved: maven-model-2.0.9.jar
[INFO]     Plugin Dependency Resolved: maven-project-2.0.9.jar
[INFO]     Plugin Dependency Resolved: plexus-cli-1.2.jar
[INFO]     Plugin Dependency Resolved: commons-cli-1.0.jar
[INFO]     Plugin Dependency Resolved: asm-3.1.jar
...
{code}

point to an old asm-version, but you already know this I suppose.

> Unable to shade Java 8 jarfiles with static interface methods using minimizeJar
> -------------------------------------------------------------------------------
>
>                 Key: MSHADE-174
>                 URL: https://jira.codehaus.org/browse/MSHADE-174
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2, 2.3
>         Environment: WIndows 7 (x64)
> Netbeans 8.0 (also occurs on command line)
> Maven 3.2.1
> (Maven) ASM-5.0.2
>            Reporter: Spencer Alderman
>            Priority: Critical
>         Attachments: effective-pom.txt, out.txt, stacktrace.txt
>
>
> Maven shade does not appear to work with shading in Java 8 jarfiles that include static interface methods. A full log of a build with dependency resolution is attached (as well as an effective-pom and the stacktrace)
> The error header is:
> {panel}
> Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.3:shade (default) on project --: Error creating shaded jar: INVOKESPECIAL/STATIC on interfaces require ASM 5 -> [Help 1]
> {panel}
> (Do note, I already am using ASM 5.0.2)
> I've also created a public, reproducible version of this bug: https://github.com/1Rogue/Maven-Shade-Bug
> You simply can clone that repo and attempt a "mvn clean install", and it should fail accordingly.
> You can also view the stackoverflow question that sent me here: http://stackoverflow.com/questions/24415677/unable-to-shade-jar-with-maven-invokespecial-static/24417179#24417179



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)