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

Leszek Jadacki commented on MPLUGIN-421:
----------------------------------------

Thanks a lot for prompt answer and redirection to the library repo :)

also a hint with -e flag is usefull for the future, I was blindly using -X and 
counted it will show all usefull info :)

regarding suggested workaround - ofc leaving such .java file in the sources 
would be bad practice and pointless, I just created an issue to support 
robustness of your plugin as we all try to create "idiot proof" tools and 
applilcations :)

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

Reply via email to