[INTDIST-36] distribution-karaf fails with error factory already defined Created: 14/Aug/15 Updated: 20/Oct/17 Resolved: 19/Nov/16 |
|
| Status: | Resolved |
| Project: | integration-distribution |
| Component/s: | Build |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Thanh Ha (zxiiro) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 4141 |
| Description |
|
See: https://jenkins.opendaylight.org/releng/job/autorelease-daily-lithium/267/ [INFO] — karaf-plugin:1.5.1-Daily-v201508140010:populate-local-repo (populate-local-repo) @ distribution-karaf — |
| Comments |
| Comment by Thanh Ha (zxiiro) [ 14/Aug/15 ] |
|
Just noticed some additional logs that seem to indicate that it's trying to copy some vtn components so might be the distribution-karaf from vtn. Here's a full log of the build section that appears just before the karaf-plugin runs to copy dependencies. [INFO] — maven-dependency-plugin:2.8:unpack-dependencies (unpack-karaf-resources) @ distribution-karaf — |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
After some poke around, the last bundle built is: 463140-[INFO] ------------------------------------------------------------------------ (Line numbers are from the full build log of build #267. You can get it by curl/wget-ing https://jenkins.opendaylight.org/releng/view/autorelease/job/autorelease-daily-lithium/267/consoleText) Based on the version (0.3.1), I'm pretty sure that's the integration distribution-karaf. |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
To confirm my suspicion, the only artifact in nexus named distribution-karaf with version 0.3.1-SNAPSHOT is the integration one: |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
Some more poking shows it actually part of the karaf-plugin in odlparent that's throwing the error. Not that it means the problem is there, but it is the next breadcrumb. is what's actually throwing the "factory already defined" error which is stopping the build. |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
The current operating theory is that this patch is responsible: Thanh has a build going that reverts that and the follow on patch: The build is running here: |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
If that turns out not to be the issue, I've produced a list of all the pom.xml file changes (trying to exclude version bumps) since the Lithium release using this command: ./odlutils/for-all.pl odlutils/li-repos.txt 'git diff `git log release/lithium..HEAD --pretty=oneline --reverse | head -2 | tail -1 | egrep -o [0-9a-f] {40}` – `find . -name pom.xml` | cat' > ~/Desktop/pom-file-changes-since-li.txt Using the odlutils repo I have: The result is the attached file. |
| Comment by Colin Dixon [ 14/Aug/15 ] |
|
Attachment pom-file-changes-since-li.txt has been added with description: pom file changes between stable/lithium and Lithium-SR1 |
| Comment by Thanh Ha (zxiiro) [ 26/Aug/15 ] |
|
This was confirmed fixed after we backed out the patches to add archetypes to lithium. |