[
https://issues.apache.org/jira/browse/SLING-12437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932413#comment-17932413
]
Roy Teeuwen commented on SLING-12437:
-------------------------------------
[~paulk] I prepared a demo for you, lets see if you can manage without having
any background into Sling / Features :D. The demo spins up an OSGi application
in the integration tests (sling 13 with aem-groovy-console / groovy included):
* Check out following project / branch
[https://github.com/orbinson/aem-groovy-console/tree/SLING-12437-demo-paul]
* mvn clean install
* mvn clean install -P it -pl it.tests
If you then want to see the result on what adding groovy-macro would do:
* uncomment the following block and run the integration tests again:
[https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/src/main/features/groovy.json#L8]
* mvn clean install -P it -pl it.tests
* Check the logs in it.tests/target/launchers/model/logs/error.log
If you'd like to attach a debugger in the process:
* uncomment following block
[https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/pom.xml#L120]
* mvn clean install -P it -pl it.tests -Ddebug.osgi (this will keep the
application running and show you the url of the osgi system console if you'd
know about this)
* attach debugger on port 5000
Poke me if any questions ;)
> Groovy macro library does not work properly in OSGi
> ---------------------------------------------------
>
> Key: SLING-12437
> URL: https://issues.apache.org/jira/browse/SLING-12437
> Project: Sling
> Issue Type: Bug
> Components: Starter
> Reporter: Roy Teeuwen
> Assignee: Roy Teeuwen
> Priority: Major
> Fix For: Starter 13
>
>
> In the sling-starter project, all groovy dependencies are listed. One of them
> is groovy-macro, which does not properly work in an OSGi environment (or at
> least not in the current setup of the Sling 13 SNAPSHOT). It deletes all
> DefaultGroovyMethod methods from any POJO / POGO and adds the
> MacroGroovyMethod instead.
> My proposal is to delete the groovy-macro as library from the starter, I
> expect that [~dklco] just added all libraries that he saw were available at
> the time of adding the groovy feature file. If no one objects, I will do the
> change
--
This message was sent by Atlassian Jira
(v8.20.10#820010)