Hi Gab,
I'm by no means a maven ninja, just fumbling along at this point. I'm trying to integrate the allinone/amp archetypes into Eclipse and IntelliJ so that we can use these tools for rapid development. I'm running into different issues with each of the IDEs related to "non-standard" (I say that lightly of course) features in the alfresco lifecycle stuff.
So for example the m2e maven infrastructure in eclipse is having a hard time with the setversion lifecycle introduced by the maven-alfresco-plugin (seems like I should be able to work around this but so far have failed, although I think I'm on the right track.) It's also having a hard time with the jetty.xml file which requires filtering to bring in the alfresco db properties. I think the XML validator is freaking out because the ${} syntax is not XML friendly... but I could be wrong about that...
In IntelliJ I run into different issues. It seems to completely fail to understand the amp packaging type provided by the maven-alfresco-plugin. What I've been trying to do is to cause maven to actually do the build of that project rather than whatever maven wrapper they have in IntelliJ. I've setup an app server configuration in IntelliJ and configured appropriate webapps based on the modules created by the allinone archetype. This mostly works except for the amp module, where I have to get the amp installed... prior to the alfresco module building... IntelliJ provides the ability to run maven goals and a pre-build step like this, but they do not provide the ability to run a lifecycle phase at this point. I've worked around this by defining an external tool that simply runs "mvn install" in the amp module.
For the IntelliJ effort, it seems like I need the install phase to complete so that the amp is installed in the local repo, such that when I go to package the alfresco module it can pull the amp out of the repo?
No problem on the late reply :) I didn't see these replies either ;) Just came and looked manually to see what discussions were going on here and saw your responses.
-- Bindu