Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337216 - Previously resolved maven components ignore maven provider settings
Summary: Previously resolved maven components ignore maven provider settings
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 09:34 EST by Matt Biggs CLA
Modified: 2019-02-25 14:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Biggs CLA 2011-02-15 09:34:02 EST
Build Identifier: helios-maintenance

It appears that on the helios-maintenance branch, some changes have been made to the MavenCSpecBuilder. The changes look correct, but has a knock on effect. 

It means that when materialising against a previously materialised workspace, the maven components are iterated with a 'local' reader instead of a maven reader. This in turn means that the changes i submitted in bug 299491 along with any other settings specified in your maven reader are ignored.

Line 86 of the MavenCSpecBuilder calls addDependencies, but if the component is already on disk, the reader it passes in is a local reader and therefore has no knowledge of things like transitive or scopes or map entries. 

Somehow i guess it needs to pass in the preferences specified for the maven provider, but i have no idea how to achieve that. 

Reproducible: Always

Steps to Reproduce:
1. Perform a buckminster 'import' on a workspace that has some maven dependencies ensuring that you specify a scope or transitive=false.
2. Re-perform a buckminster 'import' on the same workspace
3. Buckminster will ignore your maven provider preferences (eg transitive) and try to resolve everything including all its sub-dependencies etc.
Comment 1 Matt Biggs CLA 2011-06-15 08:21:59 EDT
Hope nobody minds me pinging this. It's a bit of a show stopper for being able to use the latest buckminster. 

I can no longer materialize more than once.
Comment 2 Thomas Hallgren CLA 2011-06-15 08:41:51 EDT
Matt, we don't have much resources to put on this right now. A way forward could be if you provided a patch. If you do, I promise to give it priority.
Comment 3 Matt Biggs CLA 2011-06-15 09:03:46 EDT
Cheers, I'll take a look. May just see if we can suppression checking previously materialized components via a preference or something.