• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
  • Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Download
  • Client Installation
  • Java
Show / Hide Table of Contents
  • Installation Guide
  • Planning
    • Capacity Specification
    • Requirements
    • Security Considerations
    • Firewalls & Ports
    • Multiple NCache Versions
  • Server Installation
    • Windows Installer
      • Windows Installer (Wizard)
      • Windows Installer (Command Line)
      • Network Installation with PowerShell
    • Linux Installer
    • Docker
      • Docker
      • Docker Compose
  • Client Installation
    • .NET
    • Java
    • Python
    • Node.js
  • Troubleshooting
  • Evaluation Period Management
  • NCache Licenses
    • Licensing Model
    • License Management
  • Upgrading NCache
    • Upgrade Servers and Clients
    • Upgrade Servers Only
    • Live Upgrade Servers
    • Apply Private NCache Patches
  • OS Upgrades and Patches
    • Windows Upgrades and Patches
    • Linux Upgrades and Patches
    • NCache Maintenance Mode
    • Disable Auto Restart

Adding Maven Dependencies for Java Client

Note

This feature is also available in the NCache Community Edition.

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

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>
  <!--for NCache Community-->
  <!--artifactId>ncache-community-client</artifactId-->
  <version>x.x.x</version>
</dependency>

You can also add Maven Dependencies for the following Java Cache Integrations:

Java Web Sessions

  • For Tomcat version 10 or less.
<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>
    <!--for NCache Community-->
    <!--artifactId>ncache-community-sessions</artifactId-->
    <version>x.x.x</version>
</dependency>

Hibernate

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-hibernate</artifactId>
    <!--for NCache Community-->
    <!--artifactId>ncache-community-hibernate</artifactId-->
    <version>x.x.x</version>
</dependency>

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>x.x.x</version>
</dependency>

Spring

<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <artifactId>ncache-spring</artifactId>
    <!--for NCache Community-->
    <!--artifactId>ncache-community-spring</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

Linux/Windows Installer for Java Cache

Unlike the Java Cache Remote Client, the mentioned installers allow you to opt for more complete feature sets like Cache Server and Developer/QA. For details about the prerequisites and steps involved in installing NCache through these installers, refer to the following:

  • Windows Installer
  • Linux Installer

See Also

Create Cache
Connecting to Cache
Add Data to Cache

In This Article
  • Maven Dependencies
    • Java Web Sessions
    • Hibernate
    • Spring
    • JCache
  • Supported Java Versions
  • Linux/Windows Installer for Java Cache
  • See Also

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

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

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top