forcedotcom / forcedotcom/wsc

Help with import after building the .jar

Open
#302 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
276
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Hi, I built the .jar following the instructions and I get a clean build. I placed the .jar file in my java repository.

In my pom.xml I added the following :


com.sforce
sample
1.0
system
//Users/[?????]/.m2/repository/com/sforce/salesforceapi.jar

So far, so good.

after mvn clean install, I am trying to import the libraries as per the example:

import com.sforce.soap.partner.*;
import com.sforce.soap.partner.sobject.*;
import com.sforce.ws.*;

I only get import com.sforce.soap.enterprise.*; to work. com.sforce.ws and com.sforce.soap.partner libraries are not available. What am I doing wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the pom.xml dependency and the built .jar, then compare the available packages with the three imports shown in the issue. Re-run mvn clean install while checking the dependency coordinates and systemPath; done means the com.sforce.ws and com.sforce.soap.partner imports resolve alongside com.sforce.soap.enterprise.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.