You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexander Schwartz <al...@schwartzonline.de> on 2006/05/04 10:34:54 UTC

Maven 1.1 and optional ant tasks (xmlvalidate)

Hi,

I have a custom maven goal which uses the ant task <ant:xmlvalidate> to 
validate a set of XML files:

   <goal name="validate-all-xml-files"
         description="Validates whether all xml files are well-formed">

       <ant:xmlvalidate failonerror="false" lenient="yes">
           <fileset dir="$.">
               <include name="**/*.xml"/>
           </fileset>
       </ant:xmlvalidate>
   </goal>

It works fine with maven-1.0.2 but it fails with maven-1.1-beta2 (and 
java 5) without
any error message. The output is:
     __  __
    |  \/  |__ _Apache__ ___
    | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
    |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
   
    build:start:
   
    validate-all-xml-files:
    <xmlvalidate failonerror="false" lenient="yes"></xmlvalidate>BUILD 
SUCCESSFUL
    Total time   : 2 seconds
    Finished at  : Donnerstag, 4. Mai 2006 10:31:16 CEST
   

The output of "maven -x validate-all-xml-files" contains the line

   (org.apache.tools.ant.taskdefs.optional.XMLValidateTask) for type 
xmlvalidate
   [DEBUG] Could not load class

Any hints?

Thanks,

Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven 1.1 and optional ant tasks (xmlvalidate)

Posted by Arnaud HERITIER <ah...@gmail.com>.
Unknow tasks are silently ignored :-(
http://maven.apache.org/maven-1.x/reference/backwards-compatibility.html

*Bundled Ant version changed from 1.5.3-1 to 1.6.5*

While in most cases this change should be transparent, those using optional
tasks will need to add them as a dependency to their plugin/project, as not
all optional tasks are bundled with Maven any more.

Arnaud


On 5/4/06, Alexander Schwartz <al...@schwartzonline.de> wrote:
>
> Hi,
>
> I have a custom maven goal which uses the ant task <ant:xmlvalidate> to
> validate a set of XML files:
>
>    <goal name="validate-all-xml-files"
>          description="Validates whether all xml files are well-formed">
>
>        <ant:xmlvalidate failonerror="false" lenient="yes">
>            <fileset dir="$.">
>                <include name="**/*.xml"/>
>            </fileset>
>        </ant:xmlvalidate>
>    </goal>
>
> It works fine with maven-1.0.2 but it fails with maven-1.1-beta2 (and
> java 5) without
> any error message. The output is:
>      __  __
>     |  \/  |__ _Apache__ ___
>     | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>     |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
>
>     build:start:
>
>     validate-all-xml-files:
>     <xmlvalidate failonerror="false" lenient="yes"></xmlvalidate>BUILD
> SUCCESSFUL
>     Total time   : 2 seconds
>     Finished at  : Donnerstag, 4. Mai 2006 10:31:16 CEST
>
>
> The output of "maven -x validate-all-xml-files" contains the line
>
>    (org.apache.tools.ant.taskdefs.optional.XMLValidateTask) for type
> xmlvalidate
>    [DEBUG] Could not load class
>
> Any hints?
>
> Thanks,
>
> Alex
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>