Maven Doxia
  1. Maven Doxia
  2. DOXIA-373

Macro snippet with file option in a multi-pom project

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Module - Apt
    • Labels:
      None
    • Environment:
      Window XP
    • Number of attachments :
      0

      Description

      The project is a multi pom project. In the main pom project, I declare the other pom like this :

         <modules>
              <module>../moduleA</module>
              <module>../moduleB</module>
         ...
         </modules>
      

      To avoid duplicate code,I use the macro snippet in my documentation in modules A, B and Main. For convenient, the following syntax :

       %{snippet|id=myid|file=src/main/java/mypackage/File.java} 

      .

      When I build the site from each module A or B, all work fine. But when the site was generated from the main module, the snippet seem not work : All the pages who include a snippet's macros in A or B are not generated. I obtain the same problem if i do a simple site or a site:stage

      The maven site work fine work include pictures and schemas of local documentation (in A et B). I try to use
      the velocity macro and transform MyFile.apt to MyFile.apt.vm like these :

      MyFile.apt.vm
      %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
      

      It's fail too.

      I use maven 2.1.0

      Sorry for my poor english

        Issue Links

          Activity

          Lukas Theussl made changes -
          Field Original Value New Value
          Link This issue depends upon DOXIA-224 [ DOXIA-224 ]
          Lukas Theussl made changes -
          Fix Version/s 1.2 [ 14082 ]
          Lukas Theussl made changes -
          Fix Version/s 1.2 [ 14082 ]
          Robert Scholte made changes -
          Description The project is a multi pom project. In the main pom project, I declare the other pom like this :
             <modules>
                  <module>../moduleA</module>
                  <module>../moduleB</module>
             ...
             </modules>

          To avoid duplicate code,I use the macro snippet in my documentation in modules A, B and Main. For convenient, the following syntax : %{snippet|id=myid|file=src/main/java/mypackage/File.java}.

          When I build the site from each module A or B, all work fine. But when the site was generated from the main module, the snippet seem not work : All the pages who include a snippet's macros in A or B are not generated. I obtain the same problem if i do a simple site or a site:stage
            
          The maven site work fine work include pictures and schemas of local documentation (in A et B). I try to use
          the velocity macro and transform MyFile.apt to MyFile.apt.vm like these :

          MyFile.apt.vm
          %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.

          It's fail too.

          I use maven 2.1.0

          Sorry for my poor english
          The project is a multi pom project. In the main pom project, I declare the other pom like this :
          {code:xml}
             <modules>
                  <module>../moduleA</module>
                  <module>../moduleB</module>
             ...
             </modules>
          {code}
          To avoid duplicate code,I use the macro snippet in my documentation in modules A, B and Main. For convenient, the following syntax :
          {noformat} %{snippet|id=myid|file=src/main/java/mypackage/File.java} {noformat}.

          When I build the site from each module A or B, all work fine. But when the site was generated from the main module, the snippet seem not work : All the pages who include a snippet's macros in A or B are not generated. I obtain the same problem if i do a simple site or a site:stage
            
          The maven site work fine work include pictures and schemas of local documentation (in A et B). I try to use
          the velocity macro and transform {{MyFile.apt}} to {{MyFile.apt.vm}} like these :

          {noformat}
          MyFile.apt.vm
          %{snippet|id=myid|file=${basedir}/src/main/java/mypackage/File.java}.
          {noformat}

          It's fail too.

          I use maven 2.1.0

          Sorry for my poor english
          Robert Scholte made changes -
          Component/s Module - Apt [ 12814 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              poulfich
            • Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: