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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]