[ https://issues.apache.org/jira/browse/MPLUGIN-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614390#comment-17614390 ]
Slawomir Jaranowski commented on MPLUGIN-421: --------------------------------------------- Wen we execute project with {{mvn -e ...}} we will see: {code} Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error @[8,55] in file:..../descriptor-fail-poc/src/main/java/pan/leszeczek/DummyEmptySourceWithJavaExtension.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror (Parser.java:1963) at com.thoughtworks.qdox.parser.impl.Parser.yyparse (Parser.java:2085) at com.thoughtworks.qdox.parser.impl.Parser.parse (Parser.java:1944) at com.thoughtworks.qdox.library.SourceLibrary.parse (SourceLibrary.java:232) at com.thoughtworks.qdox.library.SourceLibrary.parse (SourceLibrary.java:209) at com.thoughtworks.qdox.library.SourceLibrary.addSource (SourceLibrary.java:159) at com.thoughtworks.qdox.library.SortedClassLibraryBuilder.addSource (SortedClassLibraryBuilder.java:174) at com.thoughtworks.qdox.JavaProjectBuilder.addSource (JavaProjectBuilder.java:151) at com.thoughtworks.qdox.JavaProjectBuilder$2.visitFile (JavaProjectBuilder.java:224) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk (DirectoryScanner.java:103) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk (DirectoryScanner.java:91) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk (DirectoryScanner.java:91) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk (DirectoryScanner.java:91) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan (DirectoryScanner.java:81) at com.thoughtworks.qdox.JavaProjectBuilder.addSourceTree (JavaProjectBuilder.java:218) at com.thoughtworks.qdox.JavaProjectBuilder.addSourceTree (JavaProjectBuilder.java:205) at org.apache.maven.tools.plugin.extractor.javadoc.JavaJavadocMojoDescriptorExtractor.discoverClasses (JavaJavadocMojoDescriptorExtractor.java:625) {code} Which confirms your observations, so the issue is in {{qdox}} library: https://github.com/paul-hammant/qdox Thanks for report issue here - but we can't resolve issue in external library here. As workaround please not comments everything in source java file. Or simply remove file, or change extension from java to something else. > descriptor goal fails when there is .java file present with content that's > just a comment > ----------------------------------------------------------------------------------------- > > Key: MPLUGIN-421 > URL: https://issues.apache.org/jira/browse/MPLUGIN-421 > Project: Maven Plugin Tools > Issue Type: Bug > Components: Plugin Plugin > Affects Versions: 3.6.4 > Reporter: Leszek Jadacki > Priority: Minor > > Hello, > As I was learning to create own custom plugin, during development process I > decided not to compile one of my Mojo's. For ease I simply commented all its > content. > When trying to build my "custom" plugin _Install_ fails when it executes > _descriptor_ goal. > It seems like when there is a file in the source folder with .java extension > but contains only commented lines the compiler omits the file, but the > descriptor is taking it into account and fails during parsing the file with > error "syntax error @[X,Y]" pointing to it's last line and column. -- This message was sent by Atlassian Jira (v8.20.10#820010)