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

filename with dot are considered as duplicate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0-beta-6
    • 2.0-beta-6
    • doxia integration
    • None

    Description

      I have two files :
      src/site/xdoc/releases/release1.6.3.xml
      src/site/xdoc/releases/release1.6.xml

      The output is : Embedded error: Files 'releases\release1.6.xml' clashes with existing 'c:\projets\ServicesLayerServer\src\site\xdoc\releases\release1.6.3.xml'.
      As I see this comes from org.apache.maven.doxia.module.xhtml.decoration.render.RenderingContext.
      There is

       
      this.outputName = document.substring( 0, document.indexOf( "." ) ).replace( '\\', '/' ) + ".html";
      

      IMHO it should be :

       
      this.outputName = document.substring( 0, document.lastIndexOf( "." ) ).replace( '\\', '/' ) + ".html";
      

      I have to try to update dependency in maven-site-plugin to last doxia to test this fix but I have some compilation error due to some changes in doxia

      c:\maven-svn\plugins\maven-site-plugin\src\main\java\org\apache\maven\plugins\site\ReportDocumentRenderer.java:[139,26] generate(org.codehaus.doxia.sink.Sink,java.util.Locale) in org.apache.maven.reporting.MavenReport cannot be applied to (org.apache.maven.doxia.siterenderer.sink.SiteRendererSink,java.util.Locale)

      This works with 2.0-beta-5.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              olamy Olivier Lamy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: