• Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Try NCache
  • Contact Us
Try NCache
Show / Hide Table of Contents

Adding Maven Dependencies for Java Client

You can add the Maven dependencies for Java, as discussed below.

Note

You can find details about the available NCache Java Maven Packages on our Downloads page.

Maven Dependencies

You need to add the following Maven <dependency> section in your pom.xml file, which will add all the .jars to your application.

<dependency>
  <groupId>com.alachisoft.ncache</groupId>
  <artifactId>ncache-client</artifactId>
  <version>x.x.x</version>
</dependency>

You can also add Maven dependencies for the following Java integrations:

Java Web Sessions

  • For Tomcat version 9.
<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-javax-sessions</artifactId>
    <version>x.x.x</version>
</dependency>
  • For Tomcat version 10+.
<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-sessions</artifactId>
    <version>x.x.x</version>
</dependency>

Hibernate

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-hibernate</artifactId>
    <version>x.x.x</version>
</dependency>

Spring

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-spring</artifactId>
    <version>x.x.x</version>
</dependency>

Spring Sessions

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-spring-session</artifactId>
    <version>x.x.x</version>
</dependency>

JCache

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-client</artifactId>
    <version>x.x.x</version>
</dependency>

Supported Java Versions

The supported Java versions are as follows:

Product Versions
Java 11, 17, 21

See Also

Connecting to Cache
Add Data to Cache

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Try NCache
Pricing
NCache Playground

Deployments
  • Cloud
  • Docker
  • Kubernetes
  • On-Premises
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • SignalR Backplane
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Blogs
  • Foundations
  • Videos
  • Comparisons
  • Shows
  • Whitepapers
  • Articles
  • Tech Talks
  • Magazine Articles
  • Third-Party Articles
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Docs
  • Schedule a Demo
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Terms of Use
  •  
  • Privacy Policy
  •  
  • Cookie Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
  • Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS