- From the Eclipse main menu select .
- Click Next.
- Next to the Catalog drop down click the Configure button to select a catalog.
- Click Add Remote Catalog.
- In the Catalog File field enter http://repo1.maven.org/maven2/archetype-catalog.xml
- In the Description field enter "Alfresco Archetypes 2.0".
- Click OK.
- Make sure the catalog you entered, "Alfresco Archetypes 2.0", is selected in the drop down list.
- Enter org.alfresco into the Filter field.
- Select alfresco-amp-archetype from the archetype list.
- Click Next.
- Enter a suitable Group Id, such as com.alfresco.tutorials.
- For the Artifact Id enter repo-amp-project.
The project will be created and will appear in the Eclipse Package Explorer.
- If Eclipse indicates there are problems in the project, it is most likely because there are plugins missing. Right click the problem and select Quick Fix.
Select "Discover new m2e connectors" and click
This will display a dialog that will allow you to install the missing plugins.
- Install the missing plugins (if required), and restart Eclipse if asked to do so.
You now need to create a Maven run configuration.
- Right-click the project in the Package Explorer and select .
- Select Maven Build.
- Click the New launch configuration icon.
- In the Name field enter a name such as "Repo AMP".
- You now need to select the Base Directory. Click Browse Workspace... and navigate to the root of your Repo AMP project.
- In the Goals field, enter integration-test.
- In the Profiles field enter amp-to-war.
- Now click the JRE tab, so you can enter some JVM options.
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 in a previous task. The VM arguments box should contain the
following (please modify to reflect your own path to Spring
-Xms1024m -Xmx4096m -XX:PermSize=1024m -javaagent:/Users/tbedford/Downloads/springloaded-1.2.0.RELEASE.jar -noverifyAttention: You need to change the path to Spring Loaded to reflect your system.
- Click Apply.
- Click Run.
- Eventually you will see INFO: Starting ProtocolHandler ["http-bio-8080"], which means that Alfresco is running.
Verify the Alfresco repository is running by pointing your browser at
http://localhost:8080/alfresco, and then log in using the
username admin and password admin.
Attention: You can leave the repository running, as you will exploit it in the next tutorial.