I created a maven project using the below dependencies in pom.xml. When I try to compile this project into a B4J library using SLC, I get an error saying the simple-json package does not exists.
pom.xml
--------------------------------------------------
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>4.3.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-path</artifactId>
<version>4.3.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
FAL.java
------------------------------------------------------
package com.elite;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONArray; // throwing error in this line while compiling using SLC
import org.json.simple.JSONObject;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.http.Cookies;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
public class FAL {
Error in SLC
--------------------------------------------------------
Starting step: Compiling Java code.
javac 1.8.0_281
D:\proj\FrLib\src\main\java\com\elite\FAL.java:9: error: package org.json.simple does not exist
import org.json.simple.JSONArray;
^
1 error
Project Structure:
Error.
pom.xml
--------------------------------------------------
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>4.3.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-path</artifactId>
<version>4.3.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
FAL.java
------------------------------------------------------
package com.elite;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONArray; // throwing error in this line while compiling using SLC
import org.json.simple.JSONObject;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.http.Cookies;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
public class FAL {
Error in SLC
--------------------------------------------------------
Starting step: Compiling Java code.
javac 1.8.0_281
D:\proj\FrLib\src\main\java\com\elite\FAL.java:9: error: package org.json.simple does not exist
import org.json.simple.JSONArray;
^
1 error
Project Structure:
Error.