Post

2 followers Follow
0
Avatar

How to add Gemfire XD dependency jar in a project POM

What is the recommended way to add the gemfire XD dependency jar in a project POM

arghya sadhu

Please sign in to leave a comment.

11 comments

0
Avatar

Hi Arghya,

Here are steps to add gemfirexd.jar into your maven POM:

To add GemFire XD to your Java project, you modify your project's pom.xml file.

Add the following repository definition to your pom.xml file:
<repositories>
<repository>
<id>gemfirexd-repository</id>
<name>GemFire XD Repository</name>
<url>http://dist.gemstone.com/maven/release</url>
</repository>
</repositories>
For developing peer client applications, listeners, or procedures, add the following dependencies to your pom.xml file:
<dependencies>
<dependency>
<groupId>com.pivotal.gemfirexd</groupId>
<artifactId>gemfirexd</artifactId>
<version>N.N.N</version>
</dependency>
</dependencies>
where N.N.N corresponds to the version of GemFire XD that you wish to install. For example, 1.0.

Mark Bretl 0 votes
0
Avatar

I apologize for the downloading issues. I have fixed them, would you be able to try again, please?

The gemfirexd-client.jar can be configured in Maven as:

<dependency>
    <groupId>com.pivotal.gemfirexd</groupId>
    <artifactId>gemfirexd-client</artifactId>
    <version>1.0</version>
</dependency>
Mark Bretl 0 votes
0
Avatar

Arghya,

If you try to resolve http://dist.gemstone.com/maven/release, it will come back with 'Access Denied', however I did try to access it directly at http://dist.gemstone.com/maven/release/com/pivotal/gemfirexd/gemfirexd-client/1.0/gemfirexd-client.jar, and it should not have an issue with downloading.

As far as I have tested and verified with others, the download is working. Would you be able to post your pom.xml values for gemfirexd-client? Both the dependency and repository declaration. This will help figure out your environment.

Best Regards,

--Mark

Mark Bretl 0 votes
0
Avatar

<repository>
<id>gemfirexd-repository</id>
<name>GemFire XD Repository</name>
<url>http://dist.gemstone.com/maven/release</url>
</repository>

and
<dependency>
<groupId>com.pivotal.gemfirexd</groupId>
<artifactId>gemfirexd-client</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.pivotal.gemfirexd</groupId>
<artifactId>gemfirexd</artifactId>
<version>1.0.0</version>
</dependency>

arghya sadhu 0 votes
0
Avatar

Thanks Arghya,

I do see an issue with the version for the gemfirexd.jar. It is 1.0.0 in your POM, but the actual version is 1.0.

Are you having troubles with both in Maven?

Also, are you able to download them directly?
http://dist.gemstone.com/maven/release/com/pivotal/gemfirexd/gemfirexd/1.0/gemfirexd-1.0.jar
http://dist.gemstone.com/maven/release/com/pivotal/gemfirexd/gemfirexd-client/1.0/gemfirexd-client-1.0.jar

Mark Bretl 0 votes
0
Avatar

Arghya,

Have not forgot about this.

The POM originally posted should work. I have tried this from Eclipse and Maven command-line from a public network and it worked. I have seen issues when I had proxy information in settings.xml and I would get "Cant get descriptor" errors from Maven.

Can you try one more time?

--Mark

Mark Bretl 0 votes