AnsweredAssumed Answered

maven-alfresco and deploy on tomcat profile

Question asked by mastro on Feb 7, 2012
Hi all,

I'm trying out Alfresco 4.0.b (avoiding .c for now since I know there's an issue with cmis object in webscripts which I need).

Checked out the SVN for alfresco
Downloaded the SDK

then I generated an AMP project with this command:

mvn archetype:generate -DarchetypeCatalog=

I have an already running tomcat on my home (Linux) with Alfresco and Share both running on port 8580, configured and working with postgresql as database.

I've read here:

apparently the "tomcat" profile is supported but I did not found it in the pom.xml

I created the src/main/properties directory and the 2 package: local / tomcat

copying my into them.

Then tried with:

mvn install -Prun
mvn install -Ptomcat
mvn install -Prun -Denv=tomcat
mvn install -Ptomcat -Denv=tomcat

but of course they doesn't work since the only profile I see in the pom file is "webapp" and I don't want to use jetty.

I've been able to install the amp by issuing:

mvn clean package

then coping the .amp produced in target/ and applying it to the alfresco.war with the script

I'm using Eclipse to develop and I'd appreciate if I could integrate the development in Eclipse to more easily handle everything

So I both appreciate if you explain me how to deploy directly on my existing tomcat and how to better integrate with eclipse.


ps: I asked this question in the mainling list of the maven-alfresco project before, which is the right / official place to ask question about developing on maven for Alfresco?