AnsweredAssumed Answered

RAD with Maven

Question asked by tonyrivet on Nov 15, 2013
Latest reply on Dec 9, 2013 by tonyrivet
Hi,

I am a newbie in the wonderful world of Maven. I was realy amazed by the Gab Columbro presentation at Barcelona Summit, so I decided to get into it, but I have to say I am a little disapointed now.

I tested both AMP and All-In-One archetypes, and read all tutorials I could find, but I encountered some backwards. Here are my questions :
<ul>
<li>With the All-In-One archetype, I am not able to deploy the customizations I make in the AMP project. These are well deployed in the alfresco/target repository but not in the runner/target repository. Is there any configuration to add to do so ?</li>

<li>What is the best way to create an environment for both Alfresco and Share development ?
The All-In-One archetype could be used but it is very long to run. WARs generation and deployement + Tomcat loading can take 6 or 7 minutes…
I also found a great <a href="http://blog.productivist.com/setting-up-a-dual-amp-maven-project/">blog post</a> that explains how to set a dual AMP Maven project, but it works whis jetty and I have not managed to do the same with Tomcat embedded which comes with the latest Maven Alfresco SDK release. Moreover, it implies to run two different Tomcat instances which could be a problem on small machine configurations…</li>

<li>Do I have to re-install modules and reload Tomcat each time I make a change in my source code, even for Share Web Resources ? Tomcat reloads are a real pain (I saw the capabilities of JRebel plugin, but can't afford it at the time) so it was convenient, at least, to be able to make changes in Share without restarting Tomcat all the time…</li>
</ul>
I think these questions are more of my lack of knowledge about the Maven environment than real Maven limitations. I am aware of the main assets of a Maven environment (dependencies management, continuous testing and delivery, clean Eclipse project…), and with my problems resolved it could make a real powerful tool for rapid development.

I'll appreciate any response on these points or any advice on best practices for developing with Maven.
Thanks !

Outcomes