In maven's settings.xml file it is possible to create additional profiles and declare additional remote repositories as in:
<name>Guvnor M2 Repo</name>
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).
Fixes to dependent projects:
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.