Bug 1172220
| Summary: | KIE-CI adds local Maven repository to the list of remote repositories | ||
|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Winkler <mwinkler> |
| Component: | BRE | Assignee: | Mario Fusco <mfusco> |
| Status: | CLOSED NOTABUG | QA Contact: | Marek Winkler <mwinkler> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1.0 | CC: | gdesmet |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-09 17:27:17 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: | |||
|
Description
Marek Winkler
2014-12-09 16:12:16 UTC
Marek, I double checked this and believe that the name RemoteRepository is just a bit misleading in maven/aether API. When you make a request to maven you have to set, among other things, the repositories you want to use to fullfil that request. See an example here: https://github.com/droolsjbpm/drools/blob/master/kie-ci/src/main/java/org/kie/scanner/MavenRepository.java#L170 All the maven's request objects have that addRepository() method that accepts a RemoteRepository instance and there's no way to explicitly define a LocalRepository. However if I don't add the local repo among the list of RemoteRepositories to be used by maven requests, the biggest part of kie-ci tests fail, so I assume it is necessary to specify it in the requests and I cannot find another way to do this. I'm closing this ticket for now, but if you think I am overlooking something or have any better idea to make this work, please reopen it and let me know. Mario, thanks for clarification, it makes sense, just the error message looks weird to me (and I was worried if it represented a potential problem). We can keep this ticket closed - if I find out something more, I will reopen it. |