Skip to content

Commit

Permalink
BXMSDOC-3197-master: Update BOM versions in docs. (apache#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
sterobin authored Sep 12, 2018
1 parent 1aacc65 commit e8ff624
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@ You have a Java application that contains {PRODUCT} business assets.
----

The `<version>` is the Maven artifact version for {PRODUCT} currently used in your project (for example, {MAVEN_ARTIFACT_VERSION}).

ifdef::DM,PAM[]
[NOTE]
====
Instead of specifying a {PRODUCT} `<version>` for individual dependencies, consider adding the {PRODUCT_BA} bill of materials (BOM) dependency to your project `pom.xml` file. The {PRODUCT_BA} BOM applies to both {PRODUCT_DM} and {PRODUCT_PAM}. When you add the BOM files, the correct versions of transitive dependencies from the provided Maven repositories are included in the project.
Example BOM dependency:
[source,xml,subs="attributes+"]
----
<dependency>
<groupId>com.redhat.ba</groupId>
<artifactId>ba-platform-bom</artifactId>
<version>{BOM_VERSION}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
----
For more information about the {PRODUCT_BA} BOM, see
ifdef::PAM[]
https://access.redhat.com/solutions/3405361[What is the mapping between RHPAM product and maven library version?].
endif::[]
ifdef::DM[]
https://access.redhat.com/solutions/3363991[What is the mapping between RHDM product and maven library version?].
endif::[]
====
endif::DM,PAM[]
--
. Add rule assets to the KIE virtual file system `KieFileSystem` and use `KieBuilder` with `buildAll( ExecutableModelProject.class )` specified to build the assets from an executable model:
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,34 @@ You have a Mavenized project that contains {PRODUCT} business assets.
----

The `kjar` packaging type activates the `kie-maven-plugin` component to validate and pre-compile artifact resources. The `<version>` is the Maven artifact version for {PRODUCT} currently used in your project (for example, {MAVEN_ARTIFACT_VERSION}). These settings are required to properly package the Maven project.

ifdef::DM,PAM[]
[NOTE]
====
Instead of specifying a {PRODUCT} `<version>` for individual dependencies, consider adding the {PRODUCT_BA} bill of materials (BOM) dependency to your project `pom.xml` file. The {PRODUCT_BA} BOM applies to both {PRODUCT_DM} and {PRODUCT_PAM}. When you add the BOM files, the correct versions of transitive dependencies from the provided Maven repositories are included in the project.
Example BOM dependency:
[source,xml,subs="attributes+"]
----
<dependency>
<groupId>com.redhat.ba</groupId>
<artifactId>ba-platform-bom</artifactId>
<version>{BOM_VERSION}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
----
For more information about the {PRODUCT_BA} BOM, see
ifdef::PAM[]
https://access.redhat.com/solutions/3405361[What is the mapping between RHPAM product and maven library version?].
endif::[]
ifdef::DM[]
https://access.redhat.com/solutions/3363991[What is the mapping between RHDM product and maven library version?].
endif::[]
====
endif::DM,PAM[]
--
. Add the following dependencies to the `pom.xml` file to enable rule assets to be built from an executable model:
+
Expand Down

0 comments on commit e8ff624

Please sign in to comment.