You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Michal Maczka <Mm...@cqs.ch> on 2003/01/22 13:19:27 UTC

RE: [ear plugin] Two new targets .. and the problem

Thanks!

It worked. It seems that validator is some how depending on JUnit. So I
needed to add JUnit to plugin dependency list..


I have one more problem...



 
<!--========================================================================
=================-->
  <!-- Validates appliaction.xml file against DTD:
http://java.sun.com/dtd/application_1_3.dtd -->
 
<!--========================================================================
=================-->
   <goal name="ear:validate-descriptor"
         description="Validates appliaction.xml file against DTD:
http://java.sun.com/dtd/application_1_3.dtd"
     > 
     <j:if test="${context.getVariable('maven.ear.appxml.validate') ==
'true'}">	            	
	     <j:set var="appxml"
value="${context.getVariable('maven.ear.appxml')}"/>
	     <j:set var="dtd" value="${plugin.dir}\application_1_3.dtd" />
	     
	     <echo>new Validating appxml file:${appxml} against
${dtd}</echo>
	     <j:catch var="ex">
	       <v:verifier var="j2ee_dtd_verifier" uri="${dtd}"/>

             <v:assertValid var="flag" verifier="${j2ee_dtd_verifier}">
                  <x:parse xml="${appxml}"/> 
               </v:assertValid>          
           </j:catch>
           <j:if test="${ex != null}">
           Validation failed:${ex.getMessage()}          
          </j:if>          
     </j:if>             
   </goal>




And now I have following exception


ear:validate-descriptor:
    [echo] new Validating appxml file:C:\workspace\xxx\src\applications\Gac
xxx/target/application/META-INF/application.xml against C:\programs\mave
n\plugins\maven-ear-plugin-1.1\application_1_3.dtd
Validation failed:org/relaxng/datatype/DatatypeException File: null At tag
<v:ve
rifier>: line: 175 column: 59

I know that problem is here:

 <v:verifier var="j2ee_dtd_verifier" uri="${dtd}"/>	         

simply I don't know how to correctly pass the path DTD



I tried:

${plugin.dir}\application_1_3.dtd
file://${plugin.dir}\application_1_3.dtd

and even

http://java.sun.com/dtd/application_1_3.dtd




maybe somebody can give a hint how to do this?


Michal




> -----Original Message-----
> From: Emmanuel Venisse [mailto:evenisse@ifrance.com]
> Sent: Wednesday, January 22, 2003 11:56 AM
> To: Turbine Maven Developers List
> Subject: Rep:[ear plugin] Two new targets .. and problem
> 
> 
> You can use maven -e (or -X) for tracking the error.
> 
> Emmanuel
>