Maven 1.x Ear Plugin

maven.ear.appxml is no longer respected

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6, 1.6.1, 1.7
  • Fix Version/s: 1.7
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

In 1.27 of plugin.jelly, the following code was introduced:

<j:choose>
<j:when test="${isGenerateAppXML == 'true'}">
<attainGoal name="ear:generate-ear-descriptor"/> <attainGoal name="ear:generate-ear-descriptor"/>
</j:when>
<j:otherwise>
<util:available file="${maven.ear.src}/META-INF/application.xml">
<ant:copy file="${maven.ear.appxml}" tofile="${finalAppxml}"/>
</util:available>
</j:otherwise>
</j:choose>

The hard coding of ${maven.ear.src}/META-INF/application.xml means that any application that previously provided a value for ${maven.ear.appxml} that wasn't in the hard coded and default location, no longer gets their application.xml bundled.

This breaks the ear.

Please change to
<util:available file="${maven.ear.appxml}">
<ant:copy file="${maven.ear.appxml}" tofile="${finalAppxml}"/>
</util:available>

Activity

Hide
dion gillard added a comment -

Committed to svn

Show
dion gillard added a comment - Committed to svn

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: