Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2478

extractWars configuration value does invalid extraction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Auto Closed
    • 7.1.0, 8.0.0-M2
    • None
    • TomEE Maven Plugin
    • None

    Description

      I run my TomEE as a fat JAR, and I like to keep the distribution as lean as I can achieve. I recently noticed while taking advantage of the extractWars configuration value, which instead of leaving ROOT.war and ROOT/ for instance, it removes the archive and leaving only the directory.

       

      Unfortunately, the exploded WAR that results from this variable is ROOT.war/, I only noticed this when I was testing Microprofile config injection in one of my JAX-RS resources. I have attached a very lean example. Please run it and modify extractWars to notice how the config value is not being injected when the directory is ROOT.war/.

       

      A fix to the issue will most likely be found here.

      Attachments

        1. tomee-fat-jar.zip
          3 kB
          James Chen-Smith
        2. tomee-fat-jar.zip
          3 kB
          James Chen-Smith

        Activity

          People

            Unassigned Unassigned
            poeia James Chen-Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: