Creating a POM file for an external library
Decision Intelligence Client Managed Software provides a Maven archetype that you can use to easily create POM files for external libraries.
You can either run the archetype in interactive mode or in non-interactive mode. In the interactive mode, you are prompted to enter values for each required parameter after running the archetype. In the non-interactive mode, you must specify all the required parameters directly in the command line.
When the POM file is generated, you need to update it to configure the Decision Intelligence plug-ins.
To see a complete sample of a POM file, see the Using an external library tutorial available on GitHub
.
Generating a POM file in interactive mode
- Open a command prompt and run the following command:
mvn archetype:generate \ -DarchetypeGroupId=com.ibm.decision \ -DarchetypeArtifactId=maven-archetype-external-library \ -DarchetypeVersion=16.5.1 - When prompted, enter values for the following parameters:
groupIdartifactIdversiondependencieslocalesimportMethods
Generating a POM file in non-interactive mode
Open a command prompt and run the following command:
mvn archetype:generate \
-DarchetypeGroupId=com.ibm.decision \
-DarchetypeArtifactId=maven-archetype-external-library \
-DarchetypeVersion=16.5.1 \
-DgroupId=<groupID> \
-DartifactId=<artifactId> \
-Dversion=<version> \
-Ddependencies=<dependencies> \
-Dlocales=<locales> \
-DimportMethods=<true|false> \
-B
Parameter details
| Parameter | Details |
|---|---|
archetypeGroupId |
The archetypeGroupId, archetypeArtifactId, and
archetypeVersion parameters define the coordinates of the archetype to be used as a
template. |
archetypeArtifactId |
|
archetypeVersion |
| Parameter | Details |
|---|---|
groupId |
The These parameters will be used to import the external library into Decision Designer. |
artifactId |
|
version |
|
dependencies |
Your external library might depend on another project to build correctly, such as your own
Java™ library or a third party library. The
dependencies parameter lets you declare these dependencies.It accepts a list of
values that are separated by commas. For example:
|
locales |
The The following locales are supported in Decision Designer:
|
importMethods |
When the importMethods parameter is set to true, Java class methods are automatically verbalized. When set to false, Java class methods are not verbalized. |
What to do next
When you have created the POM file, you are ready to generate the external library files.