[1.25.x][KOGITO-7767] - Fix Maven instructions to add earlyaccess config (#163)

[KOGITO-7767] - Fix Maven instructions to add earlyaccess config (#157)

* [KOGITO-7767] - Fix Maven instructions to add earlyaccess config

Signed-off-by: Ricardo Zanini <zanini@redhat.com>

* Complement kn CLI description

* Apply suggestions from code review

Co-authored-by: Heena Manwani <59050394+hmanwani-rh@users.noreply.github.com>

Signed-off-by: Ricardo Zanini <zanini@redhat.com>
Co-authored-by: Heena Manwani <59050394+hmanwani-rh@users.noreply.github.com>

Signed-off-by: Ricardo Zanini <zanini@redhat.com>
Co-authored-by: Heena Manwani <59050394+hmanwani-rh@users.noreply.github.com>
diff --git a/serverlessworkflow/antora.yml b/serverlessworkflow/antora.yml
index 14aec4c..4adad6d 100644
--- a/serverlessworkflow/antora.yml
+++ b/serverlessworkflow/antora.yml
@@ -12,12 +12,9 @@
     product_name: Kogito
     #in Downstream context: OpenShift Serverless Logic
     context: Serverless Workflow
-    # upstream: remove this var
-    #quarkus_cli_platform_redhat: -Pcom.redhat.quarkus.platform:quarkus-bom:2.7.6.Final-redhat-00006
-    quarkus_cli_platform_redhat: ""
-    # upstream: remove this var
+    # upstream: empty
     #kogito_version_redhat: 1.24.0.Final-redhat-00001
-    kogito_version_redhat: ~
+    kogito_version_redhat: ""
     # upstream: io.quarkus.platform
     #quarkus_platform: com.redhat.quarkus.platform
     quarkus_platform: io.quarkus.platform
diff --git a/serverlessworkflow/modules/ROOT/pages/_common-content/downstream-project-setup-instructions.adoc b/serverlessworkflow/modules/ROOT/pages/_common-content/downstream-project-setup-instructions.adoc
index 5be3d0a..1156d9a 100644
--- a/serverlessworkflow/modules/ROOT/pages/_common-content/downstream-project-setup-instructions.adoc
+++ b/serverlessworkflow/modules/ROOT/pages/_common-content/downstream-project-setup-instructions.adoc
@@ -12,4 +12,42 @@
 .Procedure
 . To configure the Apache Maven `settings.xml` file and Quarkus extension registry client, follow the instructions in the link:{rhbq_config_maven_url}[Configuring the Maven settings.xml file for the online repository] and link:{rhbq_config_registry_url}[Configuring Quarkus extension registry client].
 +
+. Complement the configured Apache Maven `settings.xml` file with the following profile to have access to the {product_name} repository:
++
+.Profile to access the {product_name} repository
+[source,xml,subs="attributes+"]
+----
+<!-- Configure the {product_name} Maven repository -->
+<profile>
+  <id>red-hat-earlyaccess-maven-repository</id>
+  <activation>
+    <activeByDefault>true</activeByDefault>
+  </activation>
+  <repositories>
+    <repository>
+      <id>red-hat-earlyaccess-maven-repository</id>
+      <url>https://maven.repository.redhat.com/earlyaccess/all/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+  <pluginRepositories>
+    <pluginRepository>
+      <id>red-hat-earlyaccess-maven-repository</id>
+      <url>https://maven.repository.redhat.com/earlyaccess/all/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </pluginRepository>
+  </pluginRepositories>
+</profile>
+----
++
 . Follow the instructions in the link:{redhat_registry_auth_url}[Red Hat Container Registry Authentication] article to log in to the registry and use the {context} images locally.
diff --git a/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc b/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
index 6da5958..64db8ed 100644
--- a/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
+++ b/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
@@ -20,13 +20,13 @@
 .Prerequisites
 * Java {java_min_version} is installed with `JAVA_HOME` configured appropriately.
 * Apache Maven {maven_min_version} is installed.
-* {quarkus_cli_url}[Quarkus CLI] {quarkus_version} or xref:tooling/kn-plugin-workflow-overview.adoc[Knative CLI] {kn-cli-version} is installed.
+* {quarkus_cli_url}[Quarkus CLI] or xref:tooling/kn-plugin-workflow-overview.adoc[Knative Workflow CLI] {kn-cli-version} is installed.
 * Visual Studio Code with https://marketplace.visualstudio.com/items?itemName=redhat.java[Red Hat Java Extension]
 and https://marketplace.visualstudio.com/items?itemName=redhat.vscode-extension-serverless-workflow-editor[Red Hat Serverless Workflow Editor] is installed to edit your workflows.
 
 For more information about the tooling and the required dependencies, see xref:getting-started/getting-familiar-with-our-tooling.adoc[Getting familiar with {context} tooling].
 
-ifeval::["{quarkus_cli_platform_redhat}" != ""]
+ifeval::["{kogito_version_redhat}" != ""]
 include::../../pages/_common-content/downstream-project-setup-instructions.adoc[]
 endif::[]
 
@@ -51,7 +51,7 @@
     -x=quarkus-container-image-jib \
     -x=quarkus-resteasy-jackson \
     -x=quarkus-smallrye-openapi \
-    --no-code {quarkus_cli_platform_redhat} \
+    --no-code \
     org.kie.kogito.examples:serverless-workflow-hello-world:1.0
 ----
 
@@ -175,7 +175,7 @@
 [[proc-building-application]]
 == Building your workflow application
 
-ifeval::["{quarkus_cli_platform_redhat}" != ""]
+ifeval::["{kogito_version_redhat}" != ""]
 include::../../pages/_common-content/downstream-post-create-project.adoc[]
 endif::[]
 
@@ -448,4 +448,4 @@
 * xref:getting-started/getting-familiar-with-our-tooling.adoc[Getting familiar with {context} tooling]
 * xref:service-orchestration/orchestration-of-openapi-based-services.adoc[Orchestrating the OpenAPI services]
 
-include::../../pages/_common-content/report-issue.adoc[]
\ No newline at end of file
+include::../../pages/_common-content/report-issue.adoc[]
diff --git a/serverlessworkflow/modules/ROOT/pages/tooling/kn-plugin-workflow-overview.adoc b/serverlessworkflow/modules/ROOT/pages/tooling/kn-plugin-workflow-overview.adoc
index eebdb1d..7b70a80 100644
--- a/serverlessworkflow/modules/ROOT/pages/tooling/kn-plugin-workflow-overview.adoc
+++ b/serverlessworkflow/modules/ROOT/pages/tooling/kn-plugin-workflow-overview.adoc
@@ -97,7 +97,7 @@
 * {context} plug-in for Knative CLI is installed.
 +
 For more information about installing the plug-in, see <<proc-install-sw-plugin-kn-cli, Installing the {context} plug-in for Knative CLI>>.
-ifeval::["{quarkus_cli_platform_redhat}" != ""]
+ifeval::["{kogito_version_redhat}" != ""]
 * You followed the steps in xref:getting-started/create-your-first-workflow-service.adoc#proc-configuring-maven-rhbq[Configuring your Maven project to Red Hat build of Quarkus and OpenShift Serverless Logic]
 endif::[]