- openjdk-7
- maven Apache Maven 3.2.5
- postgresql 9.3
- tomcat 7 Apache Tomcat 7.0.59
Follow the guide on the download link for maven
If you don't want to locally, just use the server. That will be setup for you.
Follow the guide on the download link for Tomcat
If you want to build on your local machine:
In the filters/ directory, make a copy of the dev.properties file named local.properties. Change the path to where you want to store the datasource.properties file. This should be outside the git repo. The contents of the file datasource.properties should be similar to this:
pgsql.driver.classname=org.postgresql.Driver
pgsql.driver.url=jdbc:postgresql://localhost/cse345
pgsql.driver.username=your_user
pgsql.driver.password=your_passwordMake sure to change the username and password for your specific setup if you are doing this on your local machine. If you are using the server, you do not need to worry about it. On the server change the path in dev.properties to be /home/YOURUSERNAME/datasource.properties. The connection information to the database is already setup and configured for you. We each have our own database within postgres. This can allow us all to work from the server with out stepping on each others toes.
To compile the application locally:
mvn clean packageTo compile the application on the server:
compilecompile is a script that will compile the application for you.
To deploy the application locally:
cp target/cse345.war $TOMCAT_HOME/webappsTo deploy the application on the server
deploydeploy is a script that will deploy the application just for you. This way we can all be working on the same machine with out conflicts.
To start tomcat if it is not already started
tomcatstartTo stop tomcat if it is already started
tomcatstopPlease use the tomcat commands to start and stop tomcat if needed.