Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-248

XML-Namespace in ITs for ant-based mojos are wrong.

    XMLWordPrintableJSON

    Details

      Description

      Example error:

      [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
      

      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.

        Attachments

        1. MPLUGIN-248.patch
          5 kB
          Mirko Friedenhagen

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                mfriedenhagen Mirko Friedenhagen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: