Issue Details (XML | Word | Printable)

Key: MPEAR-30
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dirk Sturzebecher
Votes: 0
Watchers: 0
Operations

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

Support generation of application.xml for J2EE 1.4

Created: 07/Dec/04 07:19 PM   Updated: 06/Jul/05 06:37 PM
Return to search
Component/s: None
Affects Version/s: 1.6
Fix Version/s: None

Time Tracking:
Not Specified

Environment: maven-1.0.1


 Description  « Hide

generate application.xml for J2EE 1.4

in plugin.jeyy extend

<j:switch on="${maven.ear.appxml.version}">
<j:case value="1.3">
<x:doctype name="application" publicId="-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" systemId="http://java.sun.com/dtd/application_1_3.dtd"/>
</j:case>
<j:default>
<x:doctype name="application" publicId="-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" systemId="http://java.sun.com/j2ee/dtds/application_1_2.dtd"/>
</j:default>
</j:switch>

to cater for <j:case value="1.4>

and generate the following header (however that is done in xdoc)

<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">



Felipe Leme added a comment - 08/Dec/04 09:57 PM

I'm afraid the solution is not that simple, as J2EE 1.4 uses XML Schema and the Jelly XML taglib doesn't seems to support it (if it does, I didn't realize how .

Anyway, I opened an issue on the Jelly tags:

http://nagoya.apache.org/jira/browse/JELLY-173

– Felipe


Diogo Bacelar Quintela added a comment - 06/Jul/05 06:37 PM

I've added a patch for jelly at
http://issues.apache.org/jira/browse/JELLY-213

I had the same needs