Environment Setup

License

Hdiv provides a license file whose name is license.hdiv. The folder containing this file should be included in the application server as system property:

-Dhdiv.config.dir={path-to-hdiv-folder}/license/

How the lines are added into Generic JVM arguments is server dependent. You can find how to install it on different servers here.

When launching an application with Hdiv EE components, you will see this banner in the server console if you have successfully referenced -Dhdiv.config.dir to the folder where your license.hdiv is installed:

#############################################################
Hdiv Enterprise X.X.X
(c) Copyright hdivsecurity.com

This product is licensed to Your Company

Valid until: 2019-01-15 07:28:44
Offline mode valid until: 2017-01-15 07:28:44
#############################################################

Hdiv requires write permissions in license folder

Setup Nexus artifact repository

Add Hdiv libraries and dependencies to the application. The easiest way to use Hdiv is by including our artifact repository in the local settings.xml file for Maven.

By default, settings.xml file is inside .m2 folder:

  • Unix/Mac OS X: ~/.m2
  • Windows: C:\{your-username}\.m2

Below, a sample settings.xml is included with the proper configuration.

<servers>
    <server>
        <id>hdiv-artifacts</id>
        <username>{username}</username>
        <password>{password}</password>
    </server>
</servers>
<profiles>
  <profile>
    <id>hdiv</id>
    <repositories>
      <repository>
        <id>hdiv-artifacts</id>
        <name>hdiv-artifacts</name>
        <url>https://artifacts.hdivsecurity.com/nexus/content/repositories/releases</url>
      </repository>
    </repositories>
  </profile>
</profiles>
<activeProfiles>
  <activeProfile>hdiv</activeProfile>
</activeProfiles>

Note

Replace username and password with the ones sent by our support team.