[ https://issues.apache.org/jira/browse/MJAVADOC-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony O. updated MJAVADOC-333: -------------------------------- Attachment: FailingProject.zip Here is a failing project with which I had the problem. After verification, it's happening only if I launch the Maven target "package" from IntelliJ IDEA 2016.2.4 which executes this command: {noformat} C:\Développement\MJAVADOC-333>C:\Users\myuser\Applications\JDK\8u92-windows-x64\bin\java -Dmaven.home=C:\Users\myuser\Applications\IntelliJ\2016.2.2\plugins\maven\lib\maven3 -Dclassworlds.conf=C:\Users\myuser\Applications\IntelliJ\2016.2.2\plugins\maven\lib\maven3\bin\m2.conf -Didea.launcher.port=7534 -Didea.launcher.bin.path=C:\Users\myuser\Applications\IntelliJ\2016.2.2\bin -Dfile.encoding=UTF-8 -classpathC:\Users\myuser\Applications\IntelliJ\2016.2.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Users\myuser\Applications\IntelliJ\2016.2.2\lib\idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.2.4 package {noformat} Here is the output in that case: {noformat} [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mjavadoc-333 0.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mjavadoc-333 --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Développement\MJAVADOC-333\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ mjavadoc-333 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\Développement\MJAVADOC-333\target\classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mjavadoc-333 --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Développement\MJAVADOC-333\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ mjavadoc-333 --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mjavadoc-333 --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Développement\MJAVADOC-333\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mjavadoc-333 --- [INFO] Building jar: C:\Développement\MJAVADOC-333\target\mjavadoc-333-0.1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadoc) @ mjavadoc-333 --- [INFO] Loading source files for package com.mycompany.mjavadoc_333... Constructing Javadoc information... 1 error 2 warnings [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.778s [INFO] Finished at: Wed Oct 12 17:05:17 CEST 2016 [INFO] Final Memory: 20M/277M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadoc) on project mjavadoc-333: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - javadoc: warning - No source files for package com.mycompany.mjavadoc_333 [ERROR] javadoc: warning - No source files for package com.mycompany.mjavadoc_333 [ERROR] javadoc: error - No public or protected classes found to document. [ERROR] [ERROR] Command line was: C:\Users\myuser\Applications\JDK\8u92-windows-x64\jre\..\bin\javadoc.exe -J-Dhttp.proxySet=true -J-Dhttp.proxyHost=localhost -J-Dhttp.proxyPort=5865 "-J-Dhttp.nonProxyHosts=\"localhost\"" @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in 'C:\Développement\MJAVADOC-333\target\apidocs' dir. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException {noformat} > Diacritics (accents) in project path prevent the plugin from working on > Windows. > -------------------------------------------------------------------------------- > > Key: MJAVADOC-333 > URL: https://issues.apache.org/jira/browse/MJAVADOC-333 > Project: Maven Javadoc Plugin > Issue Type: Bug > Affects Versions: 2.7, 2.8 > Environment: Win7 > Reporter: Martin Pecka > Attachments: FailingProject.zip, options, pom.xml > > > 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! -- This message was sent by Atlassian JIRA (v6.3.4#6332)