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

Carsten Ziegeler commented on FELIX-4003:
-----------------------------------------

I think there is nothing we can do about, basically with the empty file you 
have an illegal java source code file.As a workaround you can configure the 
plugin with <sourceExcludes>, a comma separated list of excludes

                
> SCR descriptor generation fails for a commented-out class
> ---------------------------------------------------------
>
>                 Key: FELIX-4003
>                 URL: https://issues.apache.org/jira/browse/FELIX-4003
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.11.0
>            Reporter: Alex Parvulescu
>            Priority: Minor
>         Attachments: FELIX-4003-test.patch
>
>
> There's a failure to generate scr descriptor when there's a java file that is 
> all commented out in the project.
> I'm not really sure this is something the plugin needs to take into 
> consideration, 
> I happened to run into it when I commented out a java class (each line starts 
> with a line comment '//') and the maven project would not build anymore 
> because the scr-plugin keps failng:
> bq. [ERROR] Failed to execute goal 
> org.apache.felix:maven-scr-plugin:1.11.1-SNAPSHOT:scr 
> (generate-scr-descriptor) on project basic-built-it: 
> /home/alex/work/felix/trunk/scrplugin/maven-scr-plugin/target/it/basic-build-it/src/main/java/org/apache/felix/scr/DummyClass.java
>  : Unable to load compiled class: org.apache.felix.scr.DummyClass, 907 -> 
> [Help 1]
> I'll attach a patch to reproduce this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to