[jboss-jira] [JBoss JIRA] (DROOLS-831) KIE Execution Server is not able to find the Maven repository

Isaac Silva (JIRA) issues at jboss.org
Mon Jul 20 17:00:04 EDT 2015


    [ https://issues.jboss.org/browse/DROOLS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091007#comment-13091007 ] 

Isaac Silva commented on DROOLS-831:
------------------------------------

I also tried to setup a mirror for maven central on my settings.xml, with no success.

Here is my sample settings.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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">
<mirrors>
	<mirror>
		<id>nexus</id>
		<url>{In-house Sonartype Nexus repo}/proximity/repository</url>
		<mirrorOf>*</mirrorOf>
		<layout>default</layout> 
	</mirror>
</mirrors>
  <servers>
   <server>
		<id>rulesMaven</id>
		<username>admin</username>
		<password>admin</password>
	</server>
     <server>
 		<id>nexus</id>
 		<username>{my username}</username>
 		<password>{my password}</password>
 	</server>
  </servers>
 <profiles>
   <profile>
     <id>mycustomprofile</id>
     <activation>
       <activeByDefault>true</activeByDefault>
     </activation>
     <repositories> 
     <repository>
         <id>rulesMaven</id>
         <url>http://{url where Drools Workbench is located}}/drools-wb/maven2wb/</url>
         <releases>
                 <enabled>true</enabled>
         </releases>
         <snapshots>
             <enabled>true</enabled>
         </snapshots>
     </repository> 
 </repositories>
   </profile>
 </profiles>
</settings>

Many thanks

> KIE Execution Server is not able to find the Maven repository
> -------------------------------------------------------------
>
>                 Key: DROOLS-831
>                 URL: https://issues.jboss.org/browse/DROOLS-831
>             Project: Drools
>          Issue Type: Bug
>          Components: docker images
>    Affects Versions: 6.2.0.Final
>         Environment: ALL
>            Reporter: Roger Martínez
>            Assignee: Roger Martínez
>
> In a non-Docker installation of the KIE execution server, the user must configure the Maven settings file to specify where the Maven repository for the artifacts is located.
> As Docker images are immutable, this configuration must be specified at runtime using environment variables when the container starts. 
> This feature is not implemented on latest image tag and it's mandatory for being able to use the external Maven repository.
> This bug is reported from community feedback: 
> "I'm trying out the docker images for the workbench-showcase and the execution-showcase.  Fresh install.  I'm using -p 8080:8080 for the wb and 8081:8080 for the exec.  WB runs fine and I can build and deploy the mortgage project.  Exec runs fine and I can access using REST.  I can register the exec server fine.  Mortgage container creates fine.  Starting the container produces this error on the exec docker: 
> 987 ERROR [org.kie.server.services.rest.KieServerRestImpl] (default task-5) Error creating container 'Test1' for module 'mortgages:mortgages:0.0.1': java.lang.RuntimeException: Cannot find KieModule: mortgages:mortgages:0.0.1
> Should this work out of the box?"



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jboss-jira mailing list