Uploaded image for project: 'Maven JMod Plugin'
  1. Maven JMod Plugin
  2. MJMOD-27

Implement unpack goal

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha-1
    • None
    • None

    Description

      There has not been another alpha release for 2.5 years (2017/09 to 2020/05), so I am not sure if this project is dead or alive. But in case development is still active, I would like to have an option to not only to create a JMOD but also to unpack one. Maybe this could also be implemented in Maven Assembly. I am not sure where it would fit best, but I think here.

      Background:

      • Sometimes I want to instrument JRE/JDK classes using ASM, ByteBuddy, Javassist or similar byte code engineering tools during build time in order to then either prepend the resulting JAR file to the boot classpath (Java <= 8) or to use `--patch-module` (Java >= 9).
      • In order to do that in Java 9+ environments, I have to use JDK command line tools like jmod.exe (unpack single JMOD from jmods directory) or jimage.exe (unpack lib/modules).
      • The result is a partly scripted build, using a Beanshell script via Build Helper or something like Antrun.

      The benefit of having an unpack feature accessible via a Maven plugin is obvious, I think. Who likes scripted builds?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kriegaex Alexander Kriegisch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: