Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-217

project.xml does not parse properly with maven 1.1 beta-1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.7.1
    • None
    • None
    • JDK 1.5
      maven 1.1-beta-1

    Description

      The new parser is not as permissive with xml syntax errors.

      I get the following exception while trying to parse the cactus plugin project.xml

      — Nested Exception —
      org.apache.maven.MavenException: Error parsing project.xml '/home/ericlap/.maven_1.1/cache/cactus-maven-1.7/project.xml'
      at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:189)
      at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120)
      at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHousing.java:105)
      at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.java:915)
      at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.java:884)
      at org.apache.maven.plugin.PluginManager.processDependencies(PluginManager.java:458)
      at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:664)
      at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
      at org.apache.maven.cli.App.doMain(App.java:511)
      at org.apache.maven.cli.App.main(App.java:1258)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.werken.forehead.Forehead.run(Forehead.java:551)
      at com.werken.forehead.Forehead.main(Forehead.java:581)
      — Nested Exception —
      org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</artifactId>>\r\n <v... @93:9)
      at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1079)
      at org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseDependency(MavenXpp3Reader.java:316)
      at org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:856)
      at org.apache.maven.project.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:1621)
      at org.apache.maven.project.Project.<init>(Project.java:120)
      at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:185)
      at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120)
      at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHousing.java:105)
      at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.java:915)
      at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.java:884)
      at org.apache.maven.plugin.PluginManager.processDependencies(PluginManager.java:458)
      at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:664)
      at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
      at org.apache.maven.cli.App.doMain(App.java:511)
      at org.apache.maven.cli.App.main(App.java:1258)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.werken.forehead.Forehead.run(Forehead.java:551)
      at com.werken.forehead.Forehead.main(Forehead.java:581)

      Attachments

        1. cactus.patch.zip
          0.6 kB
          Eric Lapierre

        Activity

          People

            felipeal Felipe Leme
            ericlap Eric Lapierre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: