-
Templating and Integration Guide
- Part 1: Concepts
- Part 2: Modules
- Part 3: Templates and Studio
- Part 4: Content Definitions and Views
- Part 5: Advanced Techniques
- Part 6: Setting up an integration environment
- Part 7: Step by step integration
- Further reading and resources
Update the Maven project when templates are modified in the Studio
When you do some modifications on the template sets in the studio, you have to export the set from Jahia to your Maven project to keep it up-to-date. Once the project has been created, usually you work only in the Studio so you don’t have to do it too often.
In the Studio, we need to export the WAR file of the template set. In the toolbar, select Export ->Export WAR File (.war is a compression format like .zip).
![jahia6_6_integration_en-27.png [image]](/files/live/sites/jahiacom/files/documentation/6.6/en/images/IntegrationGuide/jahia6_6_integration_en-27.png)
Save this file locally and unzip it (using 7zip for example)
Here is the .war content:
|-- META-INF | `-- MANIFEST.MF | |-- import.zip |-- WEB-INF |-- css `-- resources
- The file we need to use is the import.zip file: Unzip the file in the {dev_directory}\templates-myTpl\src\main\import\ folder. This file contains all the JCR architecture of your template set. Every changes made with the Studio are done in this file.
- If you did some modification on the server template set files (like template.templates-myTpl.jsp, definitions, resources), don’t forget to backport them to your Maven project. Copy them directly under the webapp folder of the Maven project.

