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 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
Create the file if it does not exist.
Below, a sample settings.xml is included with the proper configuration.
<?xml version="1.0" encoding="UTF-8"?> <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <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> <pluginRepositories> <pluginRepository> <id>hdiv-artifacts</id> <name>hdiv-plugin-artifacts</name> <url>https://artifacts.hdivsecurity.com/nexus/content/repositories/releases</url> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>hdiv</activeProfile> </activeProfiles> </settings>
Note
Replace username and password with the ones sent by our support team.