Search in the Documentation:

Maven configuration for Eclipse IDE

In order to configure maven for eclipse, go to "Preferences" / "Maven":

  • Under "Archetypes", click on "Add Local Catalog...", then select this archetype-catalog.xml
  • Under "Installations", click on "Add..." and select your local maven installation folder.

 

You now need to configure Maven goals in order to deploy templates and modules from your IDE. Go to "Run"/ "Run Configurations...". You now need to create 4 basic maven goals: Clean, Deploy, Install, Install - Deploy. Here is the process to create one Maven goal (ie "Clean"):

  • Right click on Maven Build and click "New", this will create a new configuration
  • Under "Name", type [JAHIA] Clean
  • Under "Base directory", type ${project_path}
  • Under "Goals", type clean
  • Go to the Common tab
  • Check the Debug and Run checkbox, this will allow you to easily deploy

For the 3 others maven goals, only the Name and the Goals will differ. The process is exactly the same. Here the Name/Goal for the next maven goals:

  • [JAHIA] Deploy / jahia:deploy
  • [JAHIA] Install / install
  • [JAHIA] Install - Deploy / install jahia:deploy