Environment configuration
important
Make sure you installed or provided the following:
- Java 1.8
- ⚠️ Maven 3.0—3.5
- Access to the Maven releases repository or on-premise instance with the AutoML SDK installation
- WorkFusion Studio or any Java IDE (Eclipse, IntelliJ Idea)
Install Java
- Download an appropriate Java Dev Kit (JDK). Make sure you install JDK, not JRE.
- Follow the steps in the installation wizard. Do not customize any settings. Use the default ones.
- Create the
JAVA_HOMEsystem variable containing the full path to the directory with installed Java. - In the command line, run
java -versionto verify the installation.
Install Archetype
AutoML SDK provides a Maven Archetype to create a project required for model customization.
To install Maven, follow these steps:
- Download Maven v3.0–3.5 (not higher) from the official Maven website.
- Unzip the archive to C:\Program Files\apache-maven-3.6.0.
- Create the
MAVEN_HOMEsystem variable containing the full path to the directory with unzipped Maven. - Add
%MAVEN_HOME%\binto thePATHsystem variable. - In the new command line, run
mvn -versionto verify the installation.
Use WorkFusion repository
If you have access to the WorkFusion Maven releases repository, add it to your Maven installation as described below:
In the
<%user.home%>/.m2/directory, find thesettings.xmlfile. If the<%user.home%>/.m2/directory is empty, create thesettings.xmlfile.Modify the
settings.xmlfile as shown below:<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>wf-nexus-releases</id> <username><%workfusion_nexus_user%></username> <password><%workfusion_nexus_user_password%></password> </server> </servers> <profiles> <profile> <id>wf-repo</id> <repositories> <repository> <id>wf-nexus-releases</id> <url><%nexus_instance_host%>/nexus/content/repositories/ml-sdk/</url> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>wf-repo</activeProfile> </activeProfiles> </settings>Replace the
<%nexus_instance_host%>placeholder with your Nexus instance containing AutoML SDK. It is the path to AutoML SDK dependencies.
Mirror repository
In case there is no Internet connection when you set up the environment, add the following code to the settings.xml file.
<mirrors>
<mirror>
<id>central</id>
<name>central</name>
<url><%nexus_instance_host%>/nexus/content/repositories/ml-sdk/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
Set up Maven to Nexus SSL
To use a secure connection when setting up the environment, follow these steps:
In the
<%user.home%>directory, create a.mavenrcfile.Add the following code snippet:
MAVEN_OPTS="-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"