[INFRAUTILS-13] [Karaf 4] Pax Exam IT failing with Error resolving artifact org.apache.karaf.bundle:org.apache.karaf.bundle.blueprintstate:jar:4.0.7 Created: 01/Jun/17 Updated: 19/Oct/17 Resolved: 25/Sep/17 |
|
| Status: | Resolved |
| Project: | infrautils |
| Component/s: | General |
| Affects Version/s: | Nitrogen |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Michael Vorburger | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 8578 |
| Description |
|
The Karaf 4 Pax Exam IT example SampleIntegrationTest touched in https://git.opendaylight.org/gerrit/#/c/56809/ suddenly failed on https://logs.opendaylight.org/releng/jenkins092/infrautils-verify-nitrogen-mvn33-openjdk8/87/archives/itestutils/it/target/surefire-reports/org.opendaylight.infrautils.itestutils.it.SampleIntegrationTest-output.txt.gz and https://jenkins.opendaylight.org/releng/job/infrautils-verify-nitrogen-mvn33-openjdk8/87/console with below. This works locally, so I don't understand how blueprintstate can suddenly miss?! Restarting this build now to see if this is reproducible or one off blip... 2017-06-01 13:31:04,234 | WARN | pool-3-thread-1 | AetherBasedResolver | 7 - org.ops4j.pax.url.mvn - 2.5.2 | Error resolving artifact org.apache.karaf.bundle:org.apache.karaf.bundle.blueprintstate:jar:4.0.7: [Could not find artifact org.apache.karaf.bundle:org.apache.karaf.bundle.blueprintstate:jar:4.0.7 in defaultlocal (file:/tmp/r/), Could not find artifact org.apache.karaf.bundle:org.apache.karaf.bundle.blueprintstate:jar:4.0.7 in system.repository (file:/w/workspace/infrautils-verify-nitrogen-mvn33-openjdk8/itestutils/it/target/paxexam/7726b0c0-cc53-4351-9ce8-9a8d438e79dc/system/)] testEmptyJustToMakeSureKarafStartedOK(org.opendaylight.infrautils.itestutils.it.SampleIntegrationTest) Time elapsed: 182.035 sec <<< ERROR! |
| Comments |
| Comment by Michael Vorburger [ 06/Jun/17 ] |
|
Currently not seeing this error due to |
| Comment by Michael Vorburger [ 07/Jun/17 ] |
|
It does re-appear now that we're past This works locally for me because that org.apache.karaf.bundle.blueprintstate:jar:4.0.7 is available in my ~/.m2/repository, where I see both a 4.0.7 as well as a 4.0.9, whereas the infrautils/itestutils/it/target/paxexam/.../system/org/apache/karaf/bundle/org.apache.karaf.bundle.blueprintstate only has the 4.0.9. Dunno what this 4.0.7 vs 4.0.9 is about, and it may be possible to fix this by adding a hard-coded <dependency> to 4.0.7 in infrautils/itestutils/it, but that would be stupid... The real problem is that Pax Exam relies on the content of ~/.m2/repository at all... this is the root cause of much evil (IMHO), and should be changed, to avoid this class of problems. |
| Comment by Michael Vorburger [ 07/Jun/17 ] |
|
> Pax Exam relies on the content of ~/.m2/repository at all This isn't that easy to change... > Dunno what this 4.0.7 vs 4.0.9 is about That was just because I had originally hard-coded "4.0.7" in AbstractIntegrationTest, and odlparent meanwhile moved on to 4.0.9. https://git.opendaylight.org/gerrit/#/c/58421/ should fix this. (It won't work nicely for karaf 3 and 4 in parallel, but with the latest plans on Nitrogen, that's a bit of a non-issue now anyway.) |
| Comment by Michael Vorburger [ 08/Jun/17 ] |
|
Closing as Done, as https://git.opendaylight.org/gerrit/#/c/56809/ passed. |