Nuxeo IDE addon deployment
When trying to customize the Footer of Nuxeo by following the blogpost from Laurent Doguin everything works as expected, when starting Nuxeo directly out of Eclipse.
BUT: When exporting the addon to a jar, putting it in the plugins Folder and starting via commandline, my changes to the footer aren't deployed, while other customizations in the same addon (custom doctype) are getting deployed and are working ok.
What am i missing for the deployment of changes to xhtml fragments?
Max.
Hi,
That could be an ordering issue due to the plugins folder. Try to put your into the bundles folder.
Also, how did you export the addon to a JAR ? I guess there's an issue if using the Eclipse default export option instead of the Nuxeo IDE export.
it works now, when i use: <require>all</require> (works in bundles and plugins, i tried both).
when using <require>org.nuxeo.theme.nuxeo.default</require> it doesn't work (neither in bundles nor in plugins).
AND: when trying the same (working when exported from IDE) deployment-fragment with the commandline maven project (started from the empty bundle tutorial) it simply doesn't work.
I can live with that, although it's confusing….
Max
Can you explain which use case is not working ? I didn't get it. Thanks.
1) generate empty project via maven, like shown here: http://doc.nuxeo.com/display/NXDOC56/How-to+create+an+empty+bundle
2) add deployment-fragment.xml:
<pre> <?xml version="1.0"?> <fragment version="1">
<require>all</require>
<install>
<!-- unzip the war template -->
<unzip from="${bundle.fileName}" to="/" prefix="web">
<include>web/nuxeo.war/**</include>
</unzip>
</install>
</fragment> </pre>
3) add customized nuxeo_footer_template.xhtml to resources/web/nuxeo.war/incl Folder
4) mvn clean install -> generate jar
5) copy jar to server plugins folder (or bundles) Folder
6) restart nuxeo
7) customized nuxeo_footer_template doesn't get deployed correctly, the changes aren't visible.
I thought, this should work, like it's working, when i do the same custmization out of Nuxeo IDE?
What i am trying is to use my own nuxeo-footer-template.xhtml. (Note: the "-" chars are "_" chars in the actual filename).
I even tried a "require all" in my deployment-fragment.xml, to circumvent ordering problems but no luck:
<?xml version="1.0"?> <fragment version="1">
</fragment>
Is this a known BUG, or what's going on here? I am using the official Nuxeo 5.6 Mac/Tomcat Version.