Browse Source

Added json.jar as an external resources.

master
BinHong Lee 7 years ago
parent
commit
9eb12152c5
5 changed files with 23 additions and 4 deletions
  1. +0
    -1
      .gitignore
  2. +2
    -2
      README.md
  3. +17
    -0
      pom.xml
  4. +4
    -1
      src/main/java/libsys/BookFactory.java
  5. BIN
      src/main/resources/json.jar

+ 0
- 1
.gitignore View File

@@ -6,7 +6,6 @@ target
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear



+ 2
- 2
README.md View File

@@ -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



+ 17
- 0
pom.xml View File

@@ -14,6 +14,13 @@
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org</groupId>
<artifactId>json</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/json.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
@@ -34,6 +41,16 @@
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>/home/binhong/Git/LibrarySystem/lib/json.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 4
- 1
src/main/java/libsys/BookFactory.java View File

@@ -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
{


BIN
src/main/resources/json.jar View File


Loading…
Cancel
Save