[ 
https://issues.apache.org/jira/browse/FELIX-4003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated FELIX-4003:
-----------------------------------

    Attachment: FELIX-4003-test.patch

This can be used to demo the issue. The patch applies to 
trunk/scrplugin/maven-scr-plugin.

fyi I had a few issues building 'scrplugin', I had to update the dependecy on 
'ds-annotations' from org.apache.felix.scr.generator 1.4.1-SNAPSHOT to 
org.apache.felix.scr.generator 1.5.1-SNAPSHOT (trunk version), as the 
1.4.1-SNAPSHOT is not available from any maven repo.
                
> 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