Ask a question
Missed IBM TechXchange Dev Day: Virtual Agents? On-demand viewing is available here
This article is the second part of article Configure a Maven artifact repository to be used with IBM Automation Decision Services (ADS) where we discussed on how to configure a maven repository on OpenShift Cluster.continuing with that, in this article we will focus on how to create an external Library, upload to configured maven repository and use it in ADS projectAutomation Decision Services allows you to import and use external libraries in your decision services. External libraries allow you to enrich your data model and extend rule authoring with custom data types and functions from Java™ libraries.A repository in Maven holds build artifacts and dependencies of varying types.you execute the Automation Decision Services maven plug-ins to generate the external library files. the java file are build into maven artifacts (.pom and .jar files) The Project Object Model (POM) file contains information about the external library and configuration details that are used by Maven to build the library.The deployable JAR contains the library files. If you are not satisfied with the generated library, you can annotate the source code or edit the vocabulary files. After the JAR file is deployed to the maven repository, the external library is ready to be imported into Decision Designer.For more information on External Library refer: external-libraries
automation-decision-services-samples/samples/ExternalLibraryStartTutorial
sudo apt install maven
automation-decision-services-samples/samples/ExternalLibraryStartTutorial/pom.xml
automation-decision-services-samples/samples/ExternalLibraryStartTutorial/sampleLibrary/pom.xml
automation-decision-services-samples/samples/ExternalLibraryStartTutorial/adsSampleLibrary/pom.xml
<properties> <archive.repository.snapshot.url>SNAPSHOT URL TO BE SET</archive.repository.snapshot.url> <archive.repository.release.url>RELEASE URL TO BE SET</archive.repository.release.url> <ads-mojo.version>6.1.5.4</ads-mojo.version> <ads-annotations.version>1.0.16</ads-annotations.version> </properties>
<groupId>ads.samples</groupId><artifactId>adsSampleLibrary</artifactId><version>1.0.10</version>
automation-decision-services-samples/samples/ExternalLibraryStartTutorial/sampleLibrary
<distributionManagement> <snapshotRepository> <id>maven-releases</id> <url><maven release url></url></snapshotRepository><repository> <id>maven-snapshot</id> <url><maven snapshot url></url></repository></distributionManagement>
<id>maven-releases</id>
<url><maven release url></url>
<id>maven-snapshot</id>
<url><maven snapshot url></url>
mvn clean deploy -s settings.xml
mvn clean deploy