Sarwar, Yup - that's the reason -- thanks!
-- David Gonzalez Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, January 19, 2012 at 9:33 AM, Sarwar Bhuiyan wrote: > i'm having this same problem. It seems the instruction > > SLING-INF/initial-content/etc/designs/${project.artifactId}/; > path:=/apps/${project.artifactId}; overwrite:=true; uninstall:=false > > seems to be looking under the folder ${project.artifactId} for assets and > json files but not the /etc/designs/ folder where your mysite.json should > reside. So what I've done is do something like /etc/design/mysite/design > as the actual node which is the cq:Page. > > Anybody have a better workaround? > > Sarwar > > On Wed, Jan 18, 2012 at 4:11 AM, David G. <[email protected] > (mailto:[email protected])> wrote: > > > So i have a pretty nice maven build setup going using a variety of maven > > plugins including the maven-bundle-plugin for building my packages. One of > > the great features is Sling-Initial-Content which allows me to model nodes > > via JSON and have them created upon deployment. > > > > Im running into a problem where I want to load initial files under certain > > pre-made nodes. > > > > Example > > > > /etc/designs/my-site/js/jquery.min.js > > > > where "my-site" is a node w jcr:primaryType of "cq:Page" > > > > If I create a my-site.json (which defines a primaryType and place it > > SLING-INF/initial-content/etc/designs/my-site.json, the folder > > SLING-INF/initial-content/etc/designs/my-site seems to override the JSON > > during import and I'm left with a my-site node with type "sling:Folder" > > > > Thoughts on how to get around this? > > > > Thanks > > > > Below are the relevant plugin configs: > > > > <Include-Resource> > > {maven-resources}, > > src/main/scripts > > </Include-Resource> > > > > <Sling-Bundle-Resources> > > /apps/${project.artifactId}, > > /var/classes!/org/apache/jsp/apps/${project.artifactId} > > </Sling-Bundle-Resources> > > > > <Sling-Initial-Content> > > SLING-INF/initial-content/apps/${project.artifactId}/; > > path:=/apps/${project.artifactId}; overwrite:=true; uninstall:=false, > > SLING-INF/initial-content/etc/designs/${project.artifactId}/; > > path:=/etc/designs/${project.artifactId}; overwrite:=true; uninstall:=false, > > SLING-INF/initial-content/content/${project.artifactId}/; > > path:=/content/${project.artifactId}; overwrite:=true; uninstall:=false > > </Sling-Initial-Content> > > > > > > > > > > > > > > > > > > -- > > David Gonzalez > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig) > > > > >
