diff --git a/.gitignore b/.gitignore index c0804bc..5f1fd3b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ target .mtj.tmp/ # Package Files # -*.jar *.war *.ear diff --git a/README.md b/README.md index 0e374bb..b1e42ff 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Documentations can be found [here](https://binhonglee.github.io/LibrarySystem/). ## Dependencies -1. Maven Apache -2. Any JDK +1. [Maven Apache](https://maven.apache.org/) +2. [Oracle JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) ## Use diff --git a/pom.xml b/pom.xml index c40c6b9..5ec68dd 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,13 @@ 3.8.1 test + + org + json + 1.0 + system + ${basedir}/src/main/resources/json.jar + @@ -34,6 +41,16 @@ 1.6 + + org.apache.maven.plugins + maven-surefire-plugin + 2.20 + + + /home/binhong/Git/LibrarySystem/lib/json.jar + + + diff --git a/src/main/java/libsys/BookFactory.java b/src/main/java/libsys/BookFactory.java index af59915..8249cf1 100644 --- a/src/main/java/libsys/BookFactory.java +++ b/src/main/java/libsys/BookFactory.java @@ -1,10 +1,13 @@ package libsys; /* * Written by : Bin Hong Lee - * Last edited : 6/8/2016 + * Last edited : 5/28/2017 */ import java.util.*; +import org.json.JSONString; +import org.json.JSONObject; +import org.json.JSONTokener; class BookFactory { diff --git a/src/main/resources/json.jar b/src/main/resources/json.jar new file mode 100644 index 0000000..82f08ba Binary files /dev/null and b/src/main/resources/json.jar differ