BUILDING FROM SOURCE
Building From Source
Step-by-step guide to build the Marketcetera platform from source:
- Install the tools
- Maven 3
- Java SE JDK 8
- Subversion (command-line or UI-based, like TortoiseSvn)
- Eclipse IDE
- MySQL 5
- Set up your database system
- Add the following to your my.cnf and restart MySQL#
# Marketcetera Modifications
#character_set_server = utf8
lc_time_names = en_US
default-time-zone = +0:00
collation_server = utf8_general_ci
- Create a Marketcetera database$ mysql -u root -p
Enter password:
mysql> create database marketcetera;
mysql> grant all on marketcetera.* to ‘marketcetera’@’localhost’ identified by ‘marketcetera’;
mysql> flush privileges;
mysql> \q
These instructions are for Linux, but are almost the same for Windows. If you installed MySQL as a service, you can omit the ‘@localhost’ part above.
- Set up your directories.
- Linux
$ cd ~
$ mkdir -p marketcetera/workspaces/base/code
- Windows
Create the same directory structure from your root device, like C:\metc\workspaces\base\code. Keep it as short as possible as there’s a limitation in Windows on the length of filenames.
- Download the Source
$ cd ~/marketcetera/workspaces/base/code
$ svn co http://source.marketcetera.org/root/trunk metc
- Build the Source
$ cd metc
$ mvn -DskipTests clean install eclipse:eclipse
- Start Eclipse
- Set your workspace to marketcetera/workspaces/base
- Define a String Substitution that points to your Maven executable (Window->Preferences->Run/Debug->String Substitution)
- Set the target platform (Windows->Preferences->Plug-in Development->Target Platform)
- Select Add to create a new target platform
- Start with Nothing and click Next
- Name your target Marketcetera and click Add
- Choose Directory and click Next
- Browse to metc/photon/maven/rcptarget/photon-target/eclipse and click OK
- Click Finish
- Click Finish
- Select the Marketcetera platform as the active platform and click OK
- Import projects (File->Import->General->Existing Projects into Workspace). Set the root directory to your top level code directory (marketcetera/workspaces/base/code/metc). Check Search for nested projects and select Finish. A popup may appear right away that says “build error”. Just close this and ignore it. The code should build cleanly at this point.