[
https://jira.codehaus.org/browse/MPLUGIN-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=328915#comment-328915
]
Mirko Friedenhagen commented on MPLUGIN-248:
--------------------------------------------
I updated all samples and now receive the following error:
{code}
find maven-plugin-plugin/src/it/ -name \*.mojos.xml | xargs xmllint --schema
http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd > /dev/null
maven-plugin-plugin/src/it//ant-basic/src/main/scripts/touch.mojos.xml validates
maven-plugin-plugin/src/it//ant-reference-parameter/src/main/scripts/test.mojos.xml
validates
maven-plugin-plugin/src/it//ant-simple-usage/plugin/src/main/scripts/test.mojos.xml
validates
maven-plugin-plugin/src/it//ant-since-maven-plugin/src/main/scripts/sample.mojos.xml:31:
element since: Schemas validity error : Element
'{http://maven.apache.org/PLUGIN-METADATA/1.0.0}since': This element is not
expected.
maven-plugin-plugin/src/it//ant-since-maven-plugin/src/main/scripts/sample.mojos.xml
fails to validate
maven-plugin-plugin/src/it//fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml:31:
element since: Schemas validity error : Element
'{http://maven.apache.org/PLUGIN-METADATA/1.0.0}since': This element is not
expected.
maven-plugin-plugin/src/it//fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml
fails to validate
{code}
Seems, that a newer version of the XSD should include this :-).
> XML-Namespace in ITs for ant-based mojos are wrong.
> ---------------------------------------------------
>
> Key: MPLUGIN-248
> URL: https://jira.codehaus.org/browse/MPLUGIN-248
> Project: Maven 2.x Plugin Tools
> Issue Type: Bug
> Components: maven-plugin-tools-ant
> Affects Versions: 3.2
> Environment: git-svn-id:
> https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1470122
> 13f79535-47bb-0310-9956-ffa450edef68
> Reporter: Mirko Friedenhagen
>
> Example error:
> {code}
> [mifr@LMKA-2HPPHFDTY3 maven-plugin-tools]$ xmllint --schema
> http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd
> maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml >
> /dev/null
> maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml:23:
> element pluginMetadata: Schemas validity error : Element
> '{http://maven.apache.org/POM/4.0.0}pluginMetadata': No matching global
> declaration available for the validation root.
> maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml fails
> to validate
> {code}
> While Maven seems not choke on this, XML support in IDEs is broken because of
> this. I consider this major because the documentation
> (http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/ant-mojo.html)
> just references the ITs and all the examples therefore are broken for users.
> I will submit a patch and Github-Pull request for this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira