Maven 1.x Ear Plugin

support wsr module in application.xml

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.8
  • Component/s: None
  • 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
Stephane Nicoll added a comment -

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

Show
Stephane 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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

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