Sie sind auf Seite 1von 2

Setting up Alfresco Development Environment

1. Install all prerequirements JDK 1.7 TortoiseSVN (or any other SVN client) MySQL 5.5.x ImageMagick Freetype SWFTools (must run as admin) Eclipse Tomcat 7.0 Tomcat 5.5 (for wcm virtualization server)

2. Add new environment variables JAVA_HOME - Path to Java JDK TOMCAT_HOME - Path to Tomcat 7.0 APP_TOMCAT_HOME - Path to Tomcat 7.0 VIRTUAL_TOMCAT_HOME - Path to Tomcat 5.5

3. Add to Path variable %JAVA_HOME%/bin Path to ImageMagic folder Path to SWFTools folder 4. Go to ImageMagick folder and rename convert.exe to imconvert.exe 5. Go to CommandPrompt and copy next 3 lines, line by line: mysqladmin -u root -p create alfresco mysql -u root -p -e "grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option;" mysql -u root -p -e "grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option;"

6. Create Alfresco folder, and than using SVN client checkout http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD IMPORTANT! Make sure there are no spaces inside path to Alfresco folder (Example: C:\Documents and Settings\...). It should be like C:\Alfresco, or similar. Otherwise, build will fail. 7. Open Eclipse and go to Window > Preferences > Ant > Runtime > Properties. Than add new properties: env.TOMCAT_HOME - Path to Tomcat 7.0 env.APP_TOMCAT_HOME - Path to Tomcat 7.0 env.VIRTUAL_TOMCAT_HOME - Path to Tomcat 5.5 8. Go to Window > Preferences > Java > Installed JREs and add path to JDK 7 (NOT JRE) 9. Go to File > Import > General > Existing Projects Into Workspace > Next than select Project folder inside Alfresco\root. Deselect all projects starting with SDK, verify that Copy projects into workspace is unchecked and click Finish. 10. Create a new project (File > New > Project > General > Project). Right click on the project and choose New > File. When the new file dialog box appears click the Advanced button and select "Link to file in the file system". Browse to the build.xml file located in the Alfresco\root directory and select it. 11. Right click on build.xml > Run As > External Tools Configuration. When dialog shows up, click on JRE tab, and choose JDK that you added previously in Eclipse preferences. Press Apply and Run. 12. After you see BUILD SUCCESS, go to your Tomcat 7.0 folder, and edit startup.bat inside bin folder with any text editor. Add set CATALINA_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=256m to the file, and save it. 13. Run startup.bat. When you see "Server startup in xxxxxx ms", go to browser and open http://localhost:8080/alfresco

Das könnte Ihnen auch gefallen