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

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

    [ https://issues.apache.org/jira/browse/MPLUGIN-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614054#comment-17614054 ] 

Slawomir Jaranowski commented on MPLUGIN-421:
---------------------------------------------

Can you provide a java file which cause a problem?

> 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)