Skip to content

Commit

Permalink
fixed maven variable warning. pass through the commandline instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
simbo1905 committed Mar 11, 2012

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 57ded01 commit 0c539fe
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions commandline.build.and.run.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

By default it requires a PostgreSQL db (source has examples of mysql)
By default it requires a PostgreSQL db (source code has other working examples of mysql)
This is picked up from a DATABASE_URL env variable such as

postgres://foodToGoUser:foodToGoPassword@localhost/testdb
@@ -9,26 +9,24 @@ to refer to the other properties file. If you get the code working with other
databases let me know the settings which worked and I will commit them
for other folks.


Linux/Mac

1) Obtain the maven3 tar.gz and extract into a folder such as /home/simon/maven
2) Setup the environment variables for maven and the jdk and ensure that their bin
folders are on your path
2) Checkout the sourcecode from GitHub
git clone https://simbo1905@github.com/simbo1905/ZkToDo2.git
3) cd ZkToDo2
4) Setup the environment variables for maven and the jdk and ensure that their bin
folders are on your path (see stackoverflow.com for where your JAVA_HOME will be)
MAVEN_HOME=/home/simon/maven
export MAVEN_HOME
JAVA_HOME=/home/simon/jdk1.6
export JAVA_HOME
PATH=$JAVA_HOME\bin:$MAVEN_HOME\bin:$PATH
DATABASE_URL=postgres://foodToGoUser:foodToGoPassword@localhost/testdb
export DATABASE_URL
3) Checkout the sourcecode from GitHub
git clone https://simbo1905@github.com/simbo1905/ZkToDo2.git
4) Run it
cd ZkToDo2
5) Run it
mvn -Djetty.port=8080 package jetty:run


Windows:

1) Download an apache Maven zip file from http://maven.apache.org/
@@ -53,4 +51,4 @@ binary PATH with the command
set DATABASE_URL=postgres://foodToGoUser:foodToGoPassword@localhost/testdb
9) Compile and run the jetty webcontainer with the maven command
mvn -Djetty.port=8080 clean install jetty:run
jetty will stay running on port until you kill it by entering Ctrl+c
jetty will stay running on port until you kill it by entering Ctrl+c
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -342,7 +342,7 @@
</dependency>
</dependencies>
<build>
<finalName>zktodo2-${version}</finalName>
<finalName>zktodo2-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>

0 comments on commit 0c539fe

Please sign in to comment.