The Fieldbook tools provide a user-friendly interface for creating, editing and deleting studies and experiments. Such studies may be nurseries, trials, hybridization experiments and other types. These tools make use of our middleware and database to enable integration and comparative evaluation between and among other studies that were entered or available in our system.
Build and install Middleware and Commons using one of the following methods:
- Using the command line, go the IBPMiddleware/IBPCommons home directory, run the command:
mvn clean install
- From within Eclipse, right-click on the project, IBPCommons for instance, select Run As --> Maven build..., then input the target
clean install
To build the Fieldbook App using the command line, issue the following commands in the Fieldbook directory:
- To create a clean build and run the test code: mvn clean package
To run junit tests using the command line, issue the following commands in the Fieldbook directory:
- To run all tests:
mvn clean test
- To run a specific test class:
mvn clean test -Dtest=TestClassName
- To run a specific test function:
mvn clean test -Dtest=TestClassName#testFunctionName
- Deploy the code after the build.
- Or run via command line:
Configuration
* Go to your maven installation, you can find your installation directory by typing in DOS "mvn -version", this should show you the MVN installation information
* Go to the Maven installation directory conf/settings.xml, modify as necessary and set the profiles.
* In the Fieldbook directory, go to pipeline/config, you should have a specific profile for the user, with the correct DB settings and properties.
Running via command line
* From the command line, go to the Fieldbook folder
* Execute the ff: <pre>mvn tomcat7:run</pre>
Below are the urls to access the Fieldbook pages:
- Home - http://<tomcatHost>:<tomcatPort>/Fieldbook/
- Manage Trials - http://<tomcatHost>:<tomcatPort>/Fieldbook/TrialManager/
- Manage Nurseries - http://<tomcatHost>:<tomcatPort>/Fieldbook/NurseryManager/
- Ontology Browser - http://<tomcatHost>:<tomcatPort>/Fieldbook/OntologyBrowser/
To setup remote debugging:
- In Windows: set
MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
- Go to IDE, setup remote debugging application, choose socket attach and input the correct port number.
- Happy debugging