Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-498

Support JAR file generation with embedded JARs, like the ones generated by spring-boot

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Optional
    • None
    • 1.2.3
    • None
    • None

    Description

      I'm trying to use Arquillian + Cube Docker + Cube Containerless to generate tests for an application that uses Spring Boot. The Spring Boot plugin ends up generating a JAR file that internally contains other JARs (the application dependencies). Those JARs are stored with no compression (as opposed to regular classes that are stored deflated).

      To simplify my test and make it as compatible as possible to the final artifact, my deployment generation imports the same JAR file that spring boot plugin is generating. But when said JAR is exported internally by Arquillian Cube, all entries (including embedded libraries) are stored in the final JAR file as compressed. As a result, the JAR file cannot be executed using java -jar <my jar file>

      The ideal solution is that the exporter should be aware of this limitation, and embedded JARs inside another JAR shouldn't be compressed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rivasdiaz Ramon Rivas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: