You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leszek Jadacki (Jira)" <ji...@apache.org> on 2022/10/07 12:09:00 UTC

[jira] [Created] (MPLUGIN-421) descriptor goal fails when there is .java file present with content that's just a comment

Leszek Jadacki created MPLUGIN-421:
--------------------------------------

             Summary: 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


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)