Maven 1.x XDoc Plugin
  1. Maven 1.x XDoc Plugin
  2. MPXDOC-197

report fails if repository is not defined

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 1.10.1
    • Labels:
      None
    • Environment:
      maven 1.1-beta-3-SNAPSHOT(20060729), Operating system Windows 2000
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      If project definition contain empty repository tag then report fails:

      Project definition
      <?xml version="1.0" encoding="UTF-8"?>
      <project>
      <pomVersion>3</pomVersion>
      <artifactId>rfl-project-main</artifactId>
      <name>RFL Project Main</name>
      <groupId>$

      {groupId}

      </groupId>
      <currentVersion>$

      {version}

      </currentVersion>
      <repository>
      </repository>
      <reports>
      <report>maven-faq-plugin</report>
      <report>maven-multiproject-plugin</report>
      <report>maven-dashboard-plugin</report>
      </reports>
      </project>

      xdoc:register-reports:
      faq:init:

      maven-faq-plugin:register:

      xdoc:generate-from-pom:
      [echo] Generating xdocs from POM ...

      BUILD FAILED
      org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'scm/$

      {connscm}.xml
      '
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl
      .java:458)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.
      java:341)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
      at org.apache.velocity.runtime.directive.Parse.render(Parse.java:141)
      at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
      at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      at org.apache.velocity.Template.merge(Template.java:256)
      at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      at org.apache.commons.jelly.tags.velocity.MergeTag.mergeTemplate(MergeTag.java:186)
      at org.apache.commons.jelly.tags.velocity.MergeTag.doTag(MergeTag.java:68)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag
      .java:115)
      at org.apache.maven.werkz.Goal.fire(Goal.java:647)
      at org.apache.maven.werkz.Goal.attain(Goal.java:582)
      at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:494)
      at org.apache.maven.werkz.Goal.attain(Goal.java:580)
      at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:208)
      at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag
      .java:115)
      at org.apache.maven.werkz.Goal.fire(Goal.java:647)
      at org.apache.maven.werkz.Goal.attain(Goal.java:582)
      at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:709)
      at org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
      at org.apache.maven.cli.App.doMain(App.java:546)
      at org.apache.maven.cli.App.main(App.java:1390)
      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:324)
      at com.werken.forehead.Forehead.run(Forehead.java:551)
      at com.werken.forehead.Forehead.main(Forehead.java:581)
      File...... file:/C:/Documents and Settings/nickname/.maven/cache/maven-xdoc-plugin-1.10/plugin.jelly
      Element... velocity:merge
      Line...... 728
      Column.... 13
      Unable to find resource 'scm/${connscm}

      .xml'
      Total time : 5 seconds
      Finished at : Wednesday, August 2, 2006 9:05:28 AM CEST

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Piotr Kania
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: