Bug 1097148
| Summary: | KIE-CI does not process offline mode specified in settings.xml | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Winkler <mwinkler> | ||||
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED EOL | QA Contact: | Marek Winkler <mwinkler> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.0.1 | CC: | dtucker, etirelli, kverlaen, rrajasek | ||||
| Target Milestone: | ER1 | ||||||
| Target Release: | 6.1.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-03-27 18:35:01 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: |
|
||||||
|
Description
Marek Winkler
2014-05-13 09:03:23 UTC
It seems that the problem persists. Please run the attached reproducer project with provided settings.xml: 1. extract the attached reproducer maven project 2. edit provided settings.xml and comment out <offline>true</offline> (to allow maven download its own plugin dependencies into its empty local repo) - do not worry about <server> and <repositories> declared in settings.xml - they are not needed, in fact, we expect that the artifacts used in the test are not found in any configured repository 3. run mvn clean test -Dkie.maven.settings.custom=settings.xml -s settings.xml 4. edit settings.xml again, this time enable the offline mode (i.e. remove the previous comment around <offline>true</offline>) 5. run again mvn clean test -Dkie.maven.settings.custom=settings.xml -s settings.xml 6. see the console output, which still shows Connection refused messages (instead of complaining that artifact cannot be downloaded in offline mode) After setting a breakpoint in org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(), it seems that the created MavenRequest instance has its property offline set to false, even though MavenSettings.getSettings() in org.kie.scanner.Aether.getAether() has offline property set to true. If I missed anything, please let me know, thanks! Created attachment 942771 [details]
Maven project reproducing the problem
I have used BRMS 6.1.0.DR3 (6.2.0.Beta2-redhat-1) for verification. When running the reproducer with 6.1.0 ER2, it correctly recognizes the offline mode specified in Maven settings.xml. I have logged BZ 1172220 indicating possible problem which should be investigated but it is not related to the fix. |