In maven's settings.xml file it is possible to create additional profiles and declare additional remote repositories as in: <profiles> <profile> <id>guvnor-m2-profile</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>guvnor-m2-repo</id> <name>Guvnor M2 Repo</name> <url>http://localhost:8080/m-kie-drools-wb-distribution-wars-6.0.0.Final-jboss-as7.0/maven2</url> </repository> </repositories> </profile> </profiles> However kie-ci doesn't try to access this further repositories (as it should) when resolving a kjar.
Fixed by https://github.com/droolsjbpm/drools/commit/74c702301
Make Aether.getInstanc() public (required for Guvnor). kie-ci ------ (master) http://github.com/droolsjbpm/drools/commit/9992dd41b Fixes to dependent projects: guvnor ------ (master) http://github.com/droolsjbpm/guvnor/commit/87f8fcb06
Much appreciated, guys!
Verified on BRMS 6.0.0 ER7.
Unfortunately, this problem is not completely solved: I used the following method to test this issue: 1. I have created a simple java code which creates a new KieContainer with given ReleaseId (org.jboss.qa.brms:kie-ci-ext-artifact:1.0.0) - see attachments 2. in KIE-WB, I have created a new project with simple rule with corresponding GAV, and built it 3. I ran the test with custom settings.xml pointing to the KIE-WB repo (http://localhost:8080/business-central/maven2) and the test passed. 4. However, when I deleted the kjar created by KIE-WB from my ~/.m2/repository, KIE-CI failed to locate the kjar. KIE-CI probably should not to depend on the contents of ~/.m2/repository. Please see the attachments for details.
Created attachment 846522 [details] The KJAR built from KIE-WB
Created attachment 846523 [details] Maven project with reproducer and settings.xml Attached maven project with reproducer. Please update settings.xml to point to your local KIE-WB and run mvn clean install -Dkie.maven.settings.custom=settings.xml after you deploy the kjar in another attachemnt to KIE-WB.
Sorry, my bad - I forgot to disable authentication for DownloadServlet serving the contents of business-central/maven2. Verified with BRMS 6.0.0 ER7.