Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Help with import after building the .jar #302

@snoopgr2

Description

@snoopgr2

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 :

    <dependency>
        <groupId>com.sforce</groupId>
        <artifactId>sample</artifactId>
        <version>1.0</version>
        <scope>system</scope>
        <systemPath>//Users/[?????]/.m2/repository/com/sforce/salesforceapi.jar</systemPath>
    </dependency>

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions