Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-333

Diacritics (accents) in project path prevent the plugin from working on Windows.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7, 2.8
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Win7

      Description

      My project is located in "E:\Programování\Java\beam-3D-data-viewer". Notice the diacritics in the path.

      When launching the javadoc:javadoc goal, the build fails:
      .
      .
      .
      [ERROR] javadoc: warning - No source files for package org.esa.beam.util
      [ERROR] javadoc: error - No public or protected classes found to document.

      I looked on the generated "options" file, and that's the problem. Windows apparentely don't have their filenames encoded in UTF8 when passing them to the command line, but the options file is saved in UTF8. That's the reason why the plugin cannot find the source files. When I manually edit the file and save it in cp1250 encoding, running javadoc.bat works perfectly.

      This should obviously be fixed, but is there a quick workaround? Eg. a way to alter the generated javadoc.bat to prepend a call to iconv or something else.

      Now I can use the generated files, manually edit the options file, and run the task, but if I want to run the jar goal, this bug makes it impossible.

      Thanks for cooperation!

      1. options
        0.6 kB
        Martin Pecka
      2. pom.xml
        4 kB
        Martin Pecka

        Activity

        Martin Pecka created issue -
        Benson Margulies made changes -
        Field Original Value New Value
        Priority Critical [ 2 ] Major [ 3 ]
        Description My project is located in "E:\Programování\Java\beam-3D-data-viewer". Notice the diacritics in the path.

        When launching the javadoc:javadoc goal, the build fails:
        .
        .
        .
        [ERROR] javadoc: warning - No source files for package org.esa.beam.util
        [ERROR] javadoc: error - No public or protected classes found to document.

        I looked on the generated "options" file, and that's the problem. Windows apparentely don't have their filenames encoded in UTF8 when passing them to the command line, but the options file is saved in UTF8. That's the reason why the plugin cannot find the source files. When I manually edit the file and save it in cp1250 encoding, running javadoc.bat works perfectly.

        This should obviously be fixed, but is there a quick workaround? Eg. a way to alter the generated javadoc.bat to prepend a call to iconv or something else.

        Now I can use the generated files, manually edit the options file, and run the task, but if I want to run the jar goal, this bug makes it impossible.

        Thanks for cooperation!
        My project is located in "E:\Programování\Java\beam-3D-data-viewer". Notice the diacritics in the path.

        When launching the javadoc:javadoc goal, the build fails:
        .
        .
        .
        [ERROR] javadoc: warning - No source files for package org.esa.beam.util
        [ERROR] javadoc: error - No public or protected classes found to document.

        I looked on the generated "options" file, and that's the problem. Windows apparentely don't have their filenames encoded in UTF8 when passing them to the command line, but the options file is saved in UTF8. That's the reason why the plugin cannot find the source files. When I manually edit the file and save it in cp1250 encoding, running javadoc.bat works perfectly.

        This should obviously be fixed, but is there a quick workaround? Eg. a way to alter the generated javadoc.bat to prepend a call to iconv or something else.

        Now I can use the generated files, manually edit the options file, and run the task, but if I want to run the jar goal, this bug makes it impossible.

        Thanks for cooperation!
        Hervé Boutemy made changes -
        Comment [ ONLINE STORE :

        http://Mlink.in/6H


        n2012 comes, in order to thank everyone, characteristic, novel style, varieties, low price and good quality, and the low sale price. Thank everyone


        free shipping

        competitive price

        any size available

        accept the paypal

        jordan shoes $32

        nike shox $32

        Christan Audigier bikini $23

        Ed Hardy Bikini $23

        Smful short_t-shirt_woman $15

        ed hardy short_tank_woman $16

        Sandal $32

        christian louboutin $80

        Sunglass $15

        COACH_Necklace $27

        handbag $33

        AF tank woman $17


        puma slipper woman $30

        http://Mlink.in/6H
        ]
        Martin Pecka made changes -
        Attachment pom.xml [ 61301 ]
        Martin Pecka made changes -
        Attachment options [ 61347 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 11:56:47 UTC 2015 [ 1428235007093 ]
        Mark Thomas made changes -
        Workflow jira [ 12722565 ] Default workflow, editable Closed status [ 12762257 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:11:46 UTC 2015 [ 1428279106587 ]
        Mark Thomas made changes -
        Workflow jira [ 12960037 ] Default workflow, editable Closed status [ 12996939 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Pecka
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development