Issue Details (XML | Word | Printable)

Key: MPEAR-32
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: dion gillard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Ear Plugin

maven.ear.appxml is no longer respected

Created: 16/Dec/04 10:47 PM   Updated: 16/Dec/04 11:04 PM   Resolved: 16/Dec/04 11:04 PM
Return to search
Component/s: None
Affects Version/s: 1.6, 1.6.1, 1.7
Fix Version/s: 1.7

Time Tracking:
Not Specified


 Description  « Hide

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>



dion gillard added a comment - 16/Dec/04 11:04 PM

Committed to svn