1. Checking out the rice2.x-OLE codebase
1. Checkout the OLE_Rice2.x codebase from OLE_Rice2.x
Create a file called OLE_Rice2-config.xml under "user.home"/kuali/main/dev/. Alternatively you can copy it from the additionalfiles folder within the codebase.
Create a file called rice.keystore files under "user.home"/kuali/main/dev. Alternatively copy the rice.keystore file as well from the additionalfiles folder within the project codebase and place it under "user.home"/kuali/main/dev.
2. DB Setup (Execute either step a or step b)
a. Setup database from the baseline.sql
The project comes with a folder called helper files. You will need to run the following command to import the provided dataset. mysql -u username -p password database_name < filename.sql. In order to run this project you will need to import baseline_rice_ole.sql
b. Setup database from Rice trunk
DB Username and Password when executing the maven commands for db setup
If you don't have the OLE_Rice2-config.xml (which would have had the username/password) the default username/password is rice/rice
1. Download the db folder from the rice trunk from the following location: rice-db-trunk (https://svn.kuali.org/repos/rice/trunk/db)
2. Navigate to the rice/db/impex/master folder
3. run the following command: mvn validate -Pdb,mysql -Dimpex.dba.password=[password]
4. run the following command: mvn clean install -Pdb,mysql -Dimpex.dba.password=[password]
5. Upon success verify the database is setup with tables etc.
3. Clear your .m2/repository/org/kuali/rice Folder
- In order to start clean and to ensure there weren't any older versions of rice.jars around, need to wipe out the entire rice folder.
4. Run mvn clean install
- Navigate to the project directory and execute the following command: mvn clean install -DskipTests=true
5. Setup IntelliJ Project
1. Launch IntelliJ
2. Under the Quick Start menu click Open Project
3. Point to the pom.xml under the checked out rice codebase and click Ok.
4. This will create the intellij project for Rice.
Facets creation by IntellIJ
IntelliJ detects various facets if available and will prompt you to automatically create as part of the project configuration. You should accept when prompted or click on the create options when presented. Also once IntelliJ is done with all the processes you need to right click on the main project and go down to the maven menu option and click on "Force Re-import". This is needed the first time you will download the codebase and whenever there are changes made to the pom.xml.
6. Setup Tomcat Configuration
Artifact for deployment
Note - The artifact that you will need to mark for deployment will be 'OLE_Rice2:war exploded'. Also make sure the webapps folder in your default tomcat folder does not have any other war files (.war or folders)
vm options: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Dweb.bootstrap.spring.file=classpath:SpringBeans.xml
7. Launch App
Launch the app program by running tomcat. In the login prompt enter admin as the username and you should get to the main menu.