title: KIE Server - Cannot Find Artifacts from Remote Maven Repository
body: <p>I am using the kie-server docker image and sending curl commands to perform necessary actions.</p>
  <p>In my settings.xml I am defining a remote repo as so:</p>
  <pre><code>&lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;kie&lt;/id&gt;
        &lt;properties&gt;
        &lt;/properties&gt;
        &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;jboss-public-repository-group&lt;/id&gt;
            &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt;
            &lt;url&gt;http://mynexus:8081/nexus/content/repositories/releases&lt;/url&gt;
            &lt;layout&gt;default&lt;/layout&gt;
            &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
            &lt;/releases&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
            &lt;/snapshots&gt;
          &lt;/repository&gt;
        &lt;/repositories&gt;
        ... plugin repo also set ...
  &lt;/profiles&gt;
  &lt;activeProfiles&gt;
    &lt;activeProfile&gt;kie&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  </code></pre>
  <p>When I try to create a container and define an artifact in the nexus repo, I get the following output:</p>
  <blockquote>
  <p>09:29:35,236 WARN [org.appformer.maven.integration.embedder.MavenSettings] (default task-1) Environment variable M2_HOME is not set</p>
  <p>09:29:36,033 INFO [org.appformer.maven.integration.Aether] (default task-1) The local repository directory /opt/jboss/.m2/repository doesn't exist. Creating it.</p>
  <p>09:30:06,421 WARN [org.appformer.maven.integration.MavenRepository] (default task-1) Unable to resolve artifact: myGroup:myArtifact:0.0.1</p>
  <p>09:30:36,542 ERROR [org.kie.server.services.impl.KieServerImpl] (default task-1) Error creating container 'myContainer' for module 'myGroup:myArtifact:0.0.1': java.lang.RuntimeException: Cannot find KieModule: myGroup:myArtifact:0.0.1</p>
  </blockquote>
  <p>It looks like it is ignoring my remote repo settings and trying to use a local repo (and creating it first as it doesn't exist).</p>
  <p>If I set a local maven repo and put the required artifact in there, the container creates fine and I can run the rules, so the rule/jar/container data are all ok.</p>
  <p>I have checked the kie-server docker container once it's running, and the correct settings.xml file is in the /opt/jboss/.m2 folder which I believe is right.</p>
  <p>Thanks in advance.</p>