Expand my Community achievements bar.

Eclipse AEM plugin - content package deploy problems

Avatar

Level 1

Hello,

I have content project in Eclipse Kepler SR2. This content project is stored in SVN. Server is CQ 5.6.1. Base skeleton of the project was created as described in AEM eclipse plugin docs, http://docs.adobe.com/content/docs/en/dev-tools/aem-eclipse.html

I want to deploy project form SVN to CQ. Steps:

- Checked content project tree under /apps/b2b (b2b is my app)

- Refresh content project in eclipse. For every component, file ".content.xml" is here, which describes component properties. Eclipse JCR properties view is showing appropriate content.

Now i have in eclipse project prepared to deploy to server. Server is already set up, and content project is already added to server.

- Right click to server > Clean to publish checked out changes (new components, etc)

After a while i got error:

Failed publishing path=/apps/b2b/widgets.js, result=JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException - javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://sling.apache.org/jcr/sling/1.0}resourceType]

Only empty tree of components is deployed to server.

 

Or the MAVEN way:

Same situation as above.

- Run maven goal install, profile autoInstallPackage, base dir - root of content project

- Correct and successfull progress is showed in console, including VLT output about installing content into JCR

After maven run, i checked real content on JCR - components are created, but not as component. They are created as nt:folder, with jsp files inside. No props set, component primary type set.

How i can really deploy content project in empty CQ? Including all props, primary types, etc?

 

I found a small workaround: as described above, Eclipse shows the JCR properties of component. When i added a property beside existing props, and used the maven way, component magically created as component (not as nt:folder). I look, like somebody (maven, eclipse, content-package-maven-plugin? i dont know) does not know about .content.xml, till is edited in eclipse.

0 Replies