Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.8
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I'm following the JBoss.net documentation which is about web-services. I've been trying to get a .wsr file (jar formatted) into the ear file AND ensure it's registered in the application.xml as a module. The maven ear plugin does not support this (it's even documented that it doesn't). I want this so I fixed this in my local environment and I encourage the Maven developers to roll this change so that everyone can benefit.

      What I did to fix this was modify the goal: ear:generate-ear-descriptor with 2 changes. I removed the J:when test for jar file extensions. Then I added at the bottom this:

      <j:otherwise>
      <j:if test="$

      {dep.getProperty('ear.module')=='true'}

      ">
      <x:element name="module">
      <x:element name="java">$

      {dep.getArtifact()}

      </x:element>
      </x:element>
      </j:if>
      </j:otherwise>

        Activity

        Hide
        Stéphane Nicoll added a comment -

        wsr module can now be included in application.xml generation.

        Show
        Stéphane Nicoll added a comment - wsr module can now be included in application.xml generation.
        Hide
        Arnaud Heritier added a comment -

        Fixed in 1.8 version

        Show
        Arnaud Heritier added a comment - Fixed in 1.8 version

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            David Smiley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 10 minutes
              10m
              Remaining:
              Remaining Estimate - 10 minutes
              10m
              Logged:
              Time Spent - Not Specified
              Not Specified