You are here

Creating an All-in-One project with Eclipse

This tutorial focuses on creating an All-in-One archetype project from within the Eclipse IDE.
You need to have completed the installation process and also have Spring Loaded and Eclipse installed.
The All-in-One project archetype allows you to create a multi-module project, including projects for repo-amp, repo, share-amp, share, solr, and runner.
  1. From the Eclipse main menu select New > Maven Project.
  2. Click Next.
  3. Make sure the catalog "Alfresco Archetypes 2.0", is selected in the drop down list.
  4. Enter org.alfresco into the Filter field.
  5. Select alfresco-allinone-archetype from the archetype list.
  6. Click Next.
  7. Enter a suitable Group Id, such as com.alfresco.tutorials.
  8. For the Artifact Id enter allinone-project.
  9. Click Finish.

    The project will be created and will appear in the Eclipse Package Explorer. Notice the sub-projects that are created, such as share, runner, and solr.

You now need to create a Maven run configuration.

  1. Right-click the All in One project in the Package Explorer and select Run As > Run Configurations....
  2. Select Maven Build.
  3. Click the New launch configuration icon.
  4. In the Name field enter a name such as "All in One project".
  5. You now need to select the Base Directory. Click Browse Workspace... and navigate to the root of your All in One project.
  6. In the Goals field, enter install.
  7. In the Profiles field enter run.
  8. Now click the JRE tab, so you can enter some JVM options.
  9. In the VM arguments box, enter some options to allocate more memory to Alfresco, and also you will now use the path to Spring Loaded that you noted down previously. The VM arguments box should contain the following (please modify to reflect your own path to Spring Loaded):

                            
    -Xms1024m -Xmx4096m -XX:PermSize=1024m -javaagent:/Users/tbedford/Downloads/springloaded-1.2.0.RELEASE.jar -noverify
    
                        
    Attention: You need to change the path to Spring Loaded to reflect your system.
  10. Click Apply.
  11. Click the Run button.

    Your project will now run. After some time you will see INFO: Starting ProtocolHandler ["http-bio-8080"] displayed in the Console. This indicates that Alfresco is now running.

You have created, built and run an All in One archetype project, from Eclipse.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.