Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-226

Missing escaping of ${project.name} for default site descriptor

    XMLWordPrintableJSON

Details

    Description

      It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).

      Excerpt from pom.xml:

      ...
      <name>Module "MyMod-1.0"</name>
      ...

      Excerpt from build log:

      ...
      [INFO] Error parsing site descriptor

      Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project name="Module "MyMod-1.0"... @21:36)
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
      ...

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              pkozelka Petr Kozelka
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: