[INTDIST-11] Karaf distribution SHOULD NOT use user's local m2 repository Created: 10/Sep/14  Updated: 03/May/18  Resolved: 19/Nov/16

Status: Resolved
Project: integration-distribution
Component/s: Karaf
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Tony Tkacik Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Issue Links:
Duplicate
duplicates INTDIST-13 karaf distribution uses .m2 Resolved
External issue ID: 1788

 Description   

Karaf distribution by default uses user local m2 repository,
which may be poluted by locally built artefacts.

This may introduce heisen bugs and confuse users / developers, since distribution they downloaded
is not run with artefacts, which was shipped in build (e.g. collected by integration project)
but artefacts from user local maven repository.

In local repository I had md-sal-config snapshot with following metadata

distribution-karaf-0.2.0-SNAPSHOT/system/org/opendaylight/controller/md-sal-config/maven-metadata-local.xml

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.opendaylight.controller</groupId>
<artifactId>md-sal-config</artifactId>
<versioning>
<versions>
<version>1.1-SNAPSHOT</version>
</versions>
<lastUpdated>20140810104953</lastUpdated>
</versioning>
</metadata>

Karaf comes bundled with

distribution-karaf-0.2.0-SNAPSHOT/system/org/opendaylight/controller/md-sal-config/maven-metadata-local.xml

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.opendaylight.controller</groupId>
<artifactId>md-sal-config</artifactId>
<versioning>
<versions>
<version>1.1-SNAPSHOT</version>
</versions>
<lastUpdated>20140910025023</lastUpdated>
</versioning>
</metadata>

Feature install used local artefact from local m2 repository which was invalid in context of downloaded distribution (artefacts in distribution required different configuration).

When I wiped local .m2 repository, extracted same build, did feature:install for same component, it used correct (bundled) artefact.

Fix for this is to separate user m2 repository and m2 repository used by karaf.


Generated at Wed Feb 07 20:02:33 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.