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

Carsten Ziegeler resolved FELIX-4003.
-------------------------------------

    Resolution: Won't Fix

As there are workarounds like the exclude or you let the plugin run on the 
classes directory, I'll close this as won't fix

> 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 was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to