Thanks for the help. In case anyone has the same issue, I thought I'd post a quick update.
I didn't have bandwidth to switch our project over to the maven-slingstart-plugin yet. But I was able to use the link you provided as an example. Specifically this is the last commit before https://github.com/apache/sling/tree/6db5d64a8a074478c6c21d5932ce0b5c975de3d3/launchpad/builder it switches over to maven-slingstart, so I was able to see how that did config. The right (a right?) location turned out to be src/main/config/org.apache.sling.servlets.get.DefaultGetServlet.cfg Putting it there worked like a charm. -----Original Message----- From: Dominik Süß [mailto:[email protected]] Sent: Thursday, June 18, 2015 4:47 AM To: [email protected] Subject: Re: Configuring GET Servlet in standalone jar Hi Michael., I would recommend to switch to the maven-slingstart-plugin which is used by the launchpad in the trunk as well (see [0]). This provides a pretty conventient way to define an instance including the initial configuration (see documenation [1] and launchpad provisioning model [2]) I hope this solves all your requirements. Cheers Dominik [0] https://github.com/apache/sling/blob/trunk/launchpad/builder/pom.xml#L79-L87 (with packaging slingstart) [1] https://sling.apache.org/documentation/development/slingstart.html [2] https://github.com/apache/sling/tree/trunk/launchpad/builder/src/main/provisioning On Wed, Jun 17, 2015 at 5:59 PM, Haefele, Michael <[email protected] > wrote: > Hello, > > We have a launchpad standalone jar constructed with the maven > launchpad plugin. > I want to have this deploy with an non-default property for the GET > Servlet (specifically json.maximumresults), but I can't seem to find > how to wire that up in my jar or maven project.. > > A couple things I've tried: > Configuring that servlet manually in the Web Console, it creates a new > file in <sling > dir>/config/org/apache/sling/servlets/get/DefaultGetServlet.config > I tried adding a > /src/main/resources/config/org/apache/sling/servlets/get/DefaultGetSer > vlet.config > to my maven project. > The config directory makes it into the jar, but doesn't make it to the > final sling working directory when running the jar. > > Adding it to the resources/sling_install.properties in my project. > It gets carried over to <sling dir>/sling.properties when I run the > jar, but it doesn't seem to be picked up by the servlet (I'm assuming > this is not used for the servlet's config). > > Happy to RTM on this if someone has some good links. > > Thanks, > Mike >
