Difficulty: Beginner
Estimated Time: 10 minutes

In this section you will learn some commonly used maven commands. For more information visit Elastic Path wiki and look for Maven.

Congratulations, you have learned how to use maven in Elastic Path projects.

Maven Commands

Step 1 of 3

Step 1

Starting EP web applications

Start the fake SMTP server:

  • Open a windows explorer, navigate to C:\Tools directory
  • Double click fakeSMTP-2.0.jar to launch the application
  • Click the Start Server button

Start the JMS / ActiveMQ Server:

  • Open a windows command prompt
  • Rename the window using the following command:
TITLE JMS
  • Move to the web app directory and run the maven command to launch the web app:
cd c:\EPWorkspace\extensions\activemq-broker
mvn clean tomcat8:run-war

Start the Search Server:

Hint: Have you already started the Search Server? There should only be one instance of each server running at a time. If you have the Search Server already running, please gracefully close the instance using the command crtl+c.

  • Open another windows command prompt
  • Rename the window using the following command:
TITLE Search
  • Move to the web app directory and run the maven command to launch the web app:
cd c:\EPWorkspace\extensions\search\ext-search-webapp
mvn tomcat8:run-war

Pop Quiz: Why was the clean part of the Maven commend left out when starting up the Search Server?

Start the CM Administration server:

  • Open another windows command prompt
  • Rename the window using the following command:
TITLE CM
  • Move to the web app directory and run the maven command to launch the web app:
cd c:\EPWorkspace\extensions\cm\ext-cm-modules\ext-cm-webapp-runner
mvn clean tomcat8:run-war

Configuration Change in Commerce Manager Administration Console - Pointing the mail host to localhost

  • Open the browser and navigate to the CM Administration link found on the bookmarks bar.
  • Password for the admin user is 111111
  • Click Configuration gear icon in the middle of the top navigation bar. Or press Alt-9
  • On the left hand panel, under System Administration, click on System Configuration
  • In the main window on the right hand side, use the Filter Option so search for mailHost
  • Click on the Setting Name mailHost and use the Edit button next to Filter and change the default value from YOUR_SMTP_HOST to localhost

NB: It is important to wait until this system setting is changed before starting up the Cortex Server