<commit_before>[id='kieserver-configure-central-proc']
= Configuring a {KIE_SERVER} to connect to {CENTRAL}

You can configure a {KIE_SERVER} to connect to an existing {CENTRAL}. You can also configure the name of the server template. The server becomes a part of that server template; any decision services deployed on the template are deployed on this server.

IMPORTANT: If you are deploying the {KIE_SERVER} on OpenShift, see {URL_DM_ON_OPENSHIFT}[_{DM_ON_OPENSHIFT}_] for instructions about configuring it to connect to a {CENTRAL}.

.Procedure

. Install the {KIE_SERVER}. See {URL_INSTALLING_DM_ON_PREMISE}[_{INSTALLING_DM_ON_PREMISE}_] for instructions.
. Create a `settings.xml` file for connecting to the Maven repository that the {CENTRAL} uses. If you have not changed the configuration of {CENTRAL}, it uses its own built-in Maven repository. Use the following contents for `settings.xml`:
+
[source,xml]
----
<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 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <servers>
    <server>
      <id>remote-repo</id>
      <username>user</username>
      <password><PASSWORD>>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>additional-maven-repos</id>
      <repositories>
        <repository>
          <id>remote-repo</id>
          <url>http://centralhost:centralport/decision-central/maven2wb/</url>
        </repository>
      </repositories>
    </profile>
  </profiles>
  <activeProfiles><commit_msg>AF-1037 : Business-central maven artifacts available at maven2wb without authorization (#694)<commit_after>[id='kieserver-configure-central-proc']
= Configuring a {KIE_SERVER} to connect to {CENTRAL}

You can configure a {KIE_SERVER} to connect to an existing {CENTRAL}. You can also configure the name of the server template. The server becomes a part of that server template; any decision services deployed on the template are deployed on this server.

IMPORTANT: If you are deploying the {KIE_SERVER} on OpenShift, see {URL_DM_ON_OPENSHIFT}[_{DM_ON_OPENSHIFT}_] for instructions about configuring it to connect to a {CENTRAL}.

.Procedure

. Install the {KIE_SERVER}. See {URL_INSTALLING_DM_ON_PREMISE}[_{INSTALLING_DM_ON_PREMISE}_] for instructions.
. Create a `settings.xml` file for connecting to the Maven repository that the {CENTRAL} uses. If you have not changed the configuration of {CENTRAL}, it uses its own built-in Maven repository. Use the following contents for `settings.xml`:
+
[source,xml]
----
<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 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <servers>
    <server>
      <id>remote-repo</id>
      <username>user</username>
      <password><PASSWORD>>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>additional-maven-repos</id>
      <repositories>
        <repository>
          <id>remote-repo</id>
          <url>http://centralhost:centralport/decision-central/maven2/</url>
        </repository>
      </repositories>
    </profile>
  </profiles>
  <activeProfiles>
{'fraction_non_alphanumeric': 0.12040939193257075, 'fraction_numerical': 0.011438892233594221, 'mean_word_length': 3.7675753228120517, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5048969', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1046, 'n_words': 288}