Alfresco on IntelliJ
This page outlines the steps required to checkout the Alfresco Subversion Repository and setup a full development environment using IntelliJ IDEA.
Basic steps (assumes IDEA 7 or later, with Eclipse support):
- Setup the prerequisite platform (JDK 6, Tomcat (or JBoss), MySQL (or a better supported database, such as PostgreSQL)) and support programs (ImageMagick, SWF Tools, OpenOffice)
- Checkout the Alfresco sources from SVN
- Create a new IDEA project from Eclipse sources, using the HEAD/root/projects directory as the Eclipse workspace root to import from, taking care to review the Project JDK chosen by IDEA
- Add the HEAD/root/build.xml file to the Ant Build panel
- Declare home.jboss, home.tomcat, home.tomcat.application, home.tomcat.virtual by setting the Build File Properties (to eliminate the need for screwing around with JAVA_HOME, TOMCAT_HOME/JBOSS_HOME, APP_TOMCAT_HOME, VIRTUAL_TOMCAT_HOME)
- Arrange for all unit tests to use the same Alfresco repository
- Arrange for useful output from Log4J
- Arrange for debugging the Tomcat JVM (by declaring jpda.address and jpda.transport in the Build File Properties ... once my patch is accepted)
- If not developing on Windows, forcibly excise refrences to cmd.exe from build.xml (sigh)
- Run the dump-env-properties Ant target, to be sure you are happy with those paths
- Run the test Ant target, to put the build through its paces
- Run the Ant target of interest
Because we're using Ant, half of the niceness of the IDE with respect to the compile/debug cycle is lost. We'd like to take all this in a direction where it all fit nicely into the IntelliJ edit/debug cycle.