Jahia Install Forum > JAHIA IN ECLIPSE

0 (0 Good)
0 (0 Bad)

JAHIA IN ECLIPSE

by  mortada »  2011/06/07 20:59

Hello,
Anybody has a clue about installing jahia on eclipse, I cannot find a clear document about this installation, even the one found on the website is not clear, thanks for your help.
cheers...
  • JAHIA IN ECLIPSE
    2011/06/07 20:59

    mortada Hello, <br/>Anybody has a clue about installing jahia on eclipse, I cannot find a clear document about this installation, even the one found on the website is not clear, thanks for your help.<br/>cheers...

  • Number of messages  6
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: JAHIA IN ECLIPSE

    by  rvt »  2011/06/07 20:59

    Hey,

    have you seen this document? http://subversion.jahia.org/svn/jahia/trunk/README

    I have been trying to use that, but I got a bazillion projects created in eclipse, then I was lost laugh
    I need to try it again, I am a tidy bit more familiar with maven now so may be I did something wrong.

    Ries

  • Re: JAHIA IN ECLIPSE
    2011/07/04 13:20

    rvt <p> Hey,<br /> <br /> have you seen this document? <a class="postlink" href="http://subversion.jahia.org/svn/jahia/trunk/README">http://subversion.jahia.org/svn/jahia/trunk/README</a><br /> <br /> I have been trying to use that, but I got a bazillion projects created in eclipse, then I was lost <img alt="laugh" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/teeth_smile.gif" title="laugh" width="20" /><br /> I need to try it again, I am a tidy bit more familiar with maven now so may be I did something wrong.<br /> <br /> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: JAHIA IN ECLIPSE

    by  pap@commaro.com »  2011/06/07 21:00

    Hello Ries,

    you do not have to import ALL Jahia projects into Eclipse, but just the main ones, like: jahia-root, jahia-api, jahia-gwt, jahia-impl, jahia-taglib and jahia-war and then the modules you would like to browse or work on, where for instance the default module is interesting also a templates-* module you would like to use or copy, and also your own modules. 

    There is also an article for using Jahia with Eclipse and the Maven 2 plugins here: Using Eclipse for Jahia Template Development. It is written for Jahia 6.1 , so there are some differences to 6.5 here, especially the archetype for new modules,w hich needs to be the jahia-module-archetype for modules used in 6.5

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: JAHIA IN ECLIPSE

    by  rvt »  2011/06/07 21:00

     

    Hello Benjamin,

     

    I see what's happening, in that case it's just working fine, I can import Jahia trunk just fine and see all modules and Jahia core.

    and if I may be so free to ask....

    I managed to create working modules within Jahia Already, however I found that the 'mvn install' takes a long time, minimum 20 seconds for a module that was just created with

    mvn archetype:generate -DarchetypeCatalog=http://maven.jahia.org/maven2

    (option 3)

    I am used to Eclipse with dynamic web-modules which deploy instantly when you hit 'save' and I like to have the same behavior with a Jahia Module.

    Currently I found myself editing the JSP files in teh subdirectory of my module in the modules directly, and for the java classes I just edit them, and Eclipse will re-deploy them directly which works fine, but a bit clumsy (it sometimes fails and I have to restart Glassfish. When I use 'mvn install' then I also need to copy it into the shared_directories and that takes a long time, specially for styling changes.

    Is there a better way then the above to edit source files, both java classes and JSP files on a module and that get's deployed correctly when I hit save?

     

    Ries

  • Re: JAHIA IN ECLIPSE
    2011/07/04 13:23

    rvt <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Benjamin,</p> <p> &nbsp;</p> <p> I see what&#39;s happening, in that case it&#39;s just working fine, I can import Jahia trunk just fine and see all modules and Jahia core.</p> <p> and if I may be so free to ask....</p> <p> I managed to create working modules within Jahia Already, however I found that the &#39;mvn install&#39; takes a long time, minimum 20 seconds for a module that was just created with</p> <pre> mvn archetype:generate -DarchetypeCatalog=http://maven.jahia.org/maven2</pre> <p> (option 3)</p> <p> I am used to Eclipse with dynamic web-modules which deploy instantly when you hit &#39;save&#39; and I like to have the same behavior with a Jahia Module.</p> <p> Currently I found myself editing the JSP files in teh subdirectory of my module in the modules directly, and for the java classes I just edit them, and Eclipse will re-deploy them directly which works fine, but a bit clumsy (it sometimes fails and I have to restart Glassfish. When I use &#39;mvn install&#39; then I also need to copy it into the shared_directories and that takes a long time, specially for styling changes.</p> <p> Is there a better way then the above to edit source files, both java classes and JSP files on a module and that get&#39;s deployed correctly when I hit save?</p> <p> &nbsp;</p> <p> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: JAHIA IN ECLIPSE

    by  shyrkov »  2011/06/07 21:00

    Hello Ries,

    unfortunately the only "clean" way to deploy your module changes is "mvn ... jahia:deploy".
    Nevertheless, I am using the FileSync Eclipse Plugin activated on a module, synchronizing automatically (on save) the resources from <my-module-project>/src/main/webapp/ to <jahia-deployed-web-app>/modules/<my-module>/ folder and from <my-module-project>/target/classes to <jahia-deployed-web-app>/WEB-INF/classes (you can activate "Allow different target folders the FileSync plugin).
    This is working fast and qiute good for me (apart that I have to restart Tomcat from time to time as hot-deployment of classes does not always work). But is also quite tricky as you need to be careful of what you are synchronizing and sometimes you forget that the <jahia-deployed-web-app>/WEB-INF/var/shared_modules/<my-module>.war file is quite obsolete :-)

    Kind regards
    Sergiy

  • Re: JAHIA IN ECLIPSE
    2011/07/04 13:23

    shyrkov <p> Hello Ries,<br /> <br /> unfortunately the only &quot;clean&quot; way to deploy your module changes is &quot;mvn ... jahia:deploy&quot;.<br /> Nevertheless, I am using the&nbsp;<a href="http://andrei.gmxhome.de/filesync/index.html">FileSync Eclipse Plugin</a>&nbsp;activated on a module, synchronizing automatically (on save) the resources from &lt;my-module-project&gt;/src/main/webapp/ to &lt;jahia-deployed-web-app&gt;/modules/&lt;my-module&gt;/ folder and from &lt;my-module-project&gt;/target/classes to &lt;jahia-deployed-web-app&gt;/WEB-INF/classes (you can activate &quot;Allow different target folders the FileSync plugin).<br /> This is working fast and qiute good for me (apart that I have to restart Tomcat from time to time as hot-deployment of classes does not always work). But is also quite tricky as you need to be careful of what you are synchronizing and sometimes you forget that the &lt;jahia-deployed-web-app&gt;/WEB-INF/var/shared_modules/&lt;my-module&gt;.war file is quite obsolete&nbsp;<img alt=":-)" src="http://10.8.37.193/forum/images/smilies/icon_e_smile.gif" style="margin-top:0px;margin-bottom:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;" title="Smile" /><br /> <br /> Kind regards<br /> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: JAHIA IN ECLIPSE

    by  rvt »  2011/06/07 21:00

     

    Sergiy,

    the "FileSync Eclipse Plugin" is a good tip.. I was thinking to do this with OSX itself, but the eclipse plugin would be far better...

    Good tip, it will go on the tiplist :)

    I removed the whole 'maven' stuff from my plugin, and I simply start a new Jahia module using a dynamic web. Then in eclipse I can use export->war to generate a warfile and this works fine. I wouldn't know if I would miss anything, but it works good so far. (I think I would have a issue with properties files that need to be latin1)
    I wonder if I can let Eclipse generate a war all the time and let the Filesync plugin do the rest.... just a though...

    Ries
     
  • Re: JAHIA IN ECLIPSE
    2011/07/04 13:24

    rvt <p> &nbsp;</p> <div> Sergiy,<br /> <br /> the &quot;FileSync Eclipse Plugin&quot; is a good tip.. I was thinking to do this with OSX itself, but the eclipse plugin would be far better...<br /> <br /> Good tip, it will go on the tiplist&nbsp;<img alt=":)" src="http://10.8.37.193/forum/images/smilies/icon_e_smile.gif" style="margin-top:0px;margin-bottom:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;" title="Smile" /><br /> <br /> I removed the whole &#39;maven&#39; stuff from my plugin, and I simply start a new Jahia module using a dynamic web. Then in eclipse I can use export-&gt;war to generate a warfile and this works fine. I wouldn&#39;t know if I would miss anything, but it works good so far. (I think I would have a issue with properties files that need to be latin1)<br /> I wonder if I can let Eclipse generate a war all the time and let the Filesync plugin do the rest.... just a though...<br /> <br /> Ries</div> <div> &nbsp;</div>

  • Number of messages  185
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page