How do I build an AMP?

Just Run

mvn clean package


How do I test the AMP?

You can run Jetty embedded in maven by typing

mvn clean integration-test -P webapp


Are AMP transitive dependencies supported?

Yes, they are, both from AMP and WAR packaging projects. For AMP projects this will turn out into having a final built AMP which contains all the chain of AMPs the current AMP is depending upon. For WAR projects all AMPs will be unpacked in the proper position same as the MMT would do.


Is MMT needed with maven?

No, it is not. The whole point of it is getting rid of the annoying non integrated in the lifecycle MMT run. We created the maven-amp-plugin for managing and processing AMP lifecycle, making MMT obsolete.


Developer questions

How do I configure Eclipse?
  • Run
     mvn eclipse:eclipse
  • hit "Refresh" on your Eclipse project

Why I get PermGen or HeapSpace errors

Run your build with :

MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" mvn ...


How do I deploy a generally available AMP into a maven repo for dependency usage
					mvn deploy:deploy-file -DrepositoryId=repo -Dfile=/Users/youruser/projectz/alfresco/alfresco-recordsmanagement-2.1.0.amp -DartifactId=recordsmanagement -Dversion=2.1.0 -Dpackaging=amp -Durl=scp://...