broadleaf Demosite安装指南
注释:
1、遇到问题,可以进群:broadleaf 517835138
2、比较懒,所有图片来自BLC
一、基本环境准备
2、Maven 3.2以上
二、IDE
三、Broadleaf Commerce Eclipse Workspace Download
四、解压压缩文件, 然后将workspace 指向该文件夹,你的工作空间将如下图:
![Eclipse Initial Workspace](http://www.broadleafcommerce.com/docs/core/current/_img/gs-eclipse-hc-workspace.png)
五、在Ant 视图中添加 DemoSite的 build.xml
![Root ant targets](http://www.broadleafcommerce.com/docs/core/current/_img/gs-add-root-ant.png)
六、导图子工程, core, site, and admin. File --> Import,选择 Existing Maven Projects
![Import Maven Projects](http://www.broadleafcommerce.com/docs/core/current/_img/gs-import-maven-projects.png)
七、确保选择 My Broadleaf Sit
![Import Finish](http://www.broadleafcommerce.com/docs/core/current/_img/gs-import-finish.png)
八、再添加两个buildfiles
![Add Buildfile](http://www.broadleafcommerce.com/docs/core/current/_img/gs-add-buildfile.png)
![Add Buildfile Dialog](http://www.broadleafcommerce.com/docs/core/current/_img/gs-add-buildfile-dialog.png)
九、最终视图
![Workspace Complete](http://www.broadleafcommerce.com/docs/core/current/_img/gs-workspace-complete.png)
十、配置工程名称
![Project Change Identifier](http://www.broadleafcommerce.com/docs/core/current/_img/gs-project-change-identifier.png)
![Project Change Identifier Confirm](http://www.broadleafcommerce.com/docs/core/current/_img/gs-project-change-identifier-confirm.png)
完成后 Right click inside Package Explorer --> Refresh.
![Project Refresh](http://www.broadleafcommerce.com/docs/core/current/_img/gs-workspace-refresh.png)
十一、如果是windows 更改/DemoSite/build.properties中的 maven.home
#maven.home=D:/usr/share/maven
maven.home=D:/tools/apache-maven-3.2.2
十二、运行DemoSite Right click on DemoSite --> Run As --> Maven Install.
![Eclipse Maven Install](http://www.broadleafcommerce.com/docs/core/current/_img/gs-eclipse-maven-install.png)
![Eclipse Maven Install](http://www.broadleafcommerce.com/docs/core/current/_img/gs-eclipse-maven-install.png)
十三、启动site
![Tomcat](http://www.broadleafcommerce.com/docs/core/current/_img/gs-tomcat-site.png)
十四、启动admin(必须先启动 site, site中包含了一些admin需要的表数据)
![Tomcat Admin](http://www.broadleafcommerce.com/docs/core/current/_img/gs-tomcat-admin.png)
username/password : admin/admin