How to use Maven2 with Apache Sling?
Posted
by Jerome Baum
on Stack Overflow
See other posts from Stack Overflow
or by Jerome Baum
Published on 2010-03-21T13:48:59Z
Indexed on
2010/03/21
13:51 UTC
Read the original article
Hit count: 583
Google doesn't help, neither does a stackoverflow.com search, and browsing through Apache Sling documentation doesn't show any solution so here goes:
How can I best use Maven2 with Apache Sling? Basically as far as I see the entire application code will need to be placed in the JCR repository, but I need it versioned.
There is some documentation about OSGi bundles that could contain resources, but isn't it kind of overkill to create a bundle with a bunch of Java code to talk to Sling when all I want to do is load some files to corresponding URLs?
What I was hoping for is something like jetty:run that will automatically deploy a WAR into a new Jetty instance. Ideally the goal for Sling would run Sling and then load the specified content -- is there some Maven2 plugin for this right now? Or is the bundle-based solution the "canonical" way of doing this?
© Stack Overflow or respective owner