Bug 1039016
| Summary: | Kie-ci doesn't try to access additional remote repositories declared in settings.xml | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Mario Fusco <mfusco> | ||||||
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Winkler <mwinkler> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | urgent | ||||||||
| Version: | 6.0.0 | CC: | etirelli, lpetrovi, manstis | ||||||
| Target Milestone: | ER6 | ||||||||
| Target Release: | 6.0.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-08-06 20:18:35 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
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. |
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.