Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337438 - error trying to mirror eclipse 3.6 repository
Summary: error trying to mirror eclipse 3.6 repository
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6.2   Edit
Assignee: Kim Moir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 09:03 EST by Bouchet Stéphane CLA
Modified: 2011-02-18 11:06 EST (History)
1 user (show)

See Also:


Attachments
b3 model (1.29 KB, application/octet-stream)
2011-02-17 09:04 EST, Bouchet Stéphane CLA
no flags Details
screenshot of eclipse update site with b3 editor (129.94 KB, image/png)
2011-02-17 10:38 EST, Bouchet Stéphane CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bouchet Stéphane CLA 2011-02-17 09:03:59 EST
hi,

i am trying to mirror swtbot repository locally and ran into a problem.

i am using b3 to achieve the mirroring. ( see attached model )

Step to reproduce :
- open the attached b3 model ( you must install the b3 editor )
- right clic and choose "verify repository"
- get the following error : 

org.eclipse.core.runtime.CoreException: Cannot complete the install because one or more required items could not be found.
	at org.eclipse.b3.aggregator.engine.RepositoryVerifier.run(RepositoryVerifier.java:172)
	at org.eclipse.b3.aggregator.engine.Builder.runRepositoryVerifier(Builder.java:1091)
	at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:607)
	at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildRepoAction$1.run(AggregatorActionBarContributor.java:267)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Contains: Software being installed: all.contributed.content.feature.group 1.0.0
Contains: Missing requirement: build utility feature for equinox plugins 1.1.0.v20100521-7f7PFAwFDt5GvjMknttWDST7ELBs (master-equinox.feature.group 1.1.0.v20100521-7f7PFAwFDt5GvjMknttWDST7ELBs) requires 'master-equinox-weaving.feature.group [1.0.0.v20090817-37B7D7733L57955LBL9J]' but it could not be found
Contains: Missing requirement: build utility feature for equinox plugins 1.1.0.v20100521-7f7PFAxFDt5GvkMknttdHz-xebd5 (master-equinox.feature.group 1.1.0.v20100521-7f7PFAxFDt5GvkMknttdHz-xebd5) requires 'master-equinox-weaving.feature.group [1.0.0.v20090817-37B7D7733L57955LBL9J]' but it could not be found
Contains: Cannot satisfy dependency:
Contains: From: all.contributed.content.feature.group 1.0.0
Contains: To: master-equinox.feature.group 0.0.0
 
it seems the update site is corrupted. 


PS : searching the web about "master-equinox-weaving.feature.group" give me lots of mirror errors, for example :
http://download.eclipse.org/eclipse/downloads/drops/S-3.6.2RC4-201102101200/buildlogs/mirrorlog.txt
Comment 1 Bouchet Stéphane CLA 2011-02-17 09:04:23 EST
Created attachment 189183 [details]
b3 model
Comment 2 Kim Moir CLA 2011-02-17 10:06:24 EST
The repository is not corrupt.   We remove build time features from the repository. This includes the master-equinox and master-equinox-weaving.feature groups.  Why are you trying to mirror master-equinox-weaving.feature.group in the process mirroring the swtbot repository?
Comment 3 Bouchet Stéphane CLA 2011-02-17 10:23:34 EST
(In reply to comment #2)
> The repository is not corrupt.   We remove build time features from the
> repository. This includes the master-equinox and master-equinox-weaving.feature
> groups.  Why are you trying to mirror master-equinox-weaving.feature.group in
> the process mirroring the swtbot repository?

hi kim,

i just want to mirror swtbot, but when i tried without eclipse repo, i got an error validating repo  ( should be reproductible by disabling eclipse repos ): 

Cannot complete the install because one or more required items could not be found.
Software being installed: all.contributed.content.feature.group 1.0.0
Missing requirement: SWTBot for Eclipse Testing (incubation) 2.0.2.20110117_1743-b492ddb-dev-e34 (org.eclipse.swtbot.eclipse.feature.group 2.0.2.20110117_1743-b492ddb-dev-e34) requires 'org.eclipse.osgi 0.0.0' but it could not be found
Missing requirement: SWTBot for Eclipse Testing (incubation) 2.0.2.20110117_1743-b492ddb-dev-e35 (org.eclipse.swtbot.eclipse.feature.group 2.0.2.20110117_1743-b492ddb-dev-e35) requires 'org.eclipse.osgi 0.0.0' but it could not be found
Missing requirement: SWTBot for Eclipse Testing (incubation) 2.0.2.20110117_1743-b492ddb-dev-e36 (org.eclipse.swtbot.eclipse.feature.group 2.0.2.20110117_1743-b492ddb-dev-e36) requires 'org.eclipse.osgi 0.0.0' but it could not be found
Cannot satisfy dependency:
From: all.contributed.content.feature.group 1.0.0
To: org.eclipse.swtbot.eclipse.feature.group 0.0.0

so obviously i needed eclipse to mirror swtbot using b3. 
and i just added eclipse update site and had this error. 

BTW, it could be just a b3 bug ;)
Comment 4 Bouchet Stéphane CLA 2011-02-17 10:38:45 EST
Created attachment 189198 [details]
screenshot of eclipse update site with b3 editor

additionnal comments :

when i browse the repo using b3 editor model, i see that the label is "Eclipse Project Test Site" and i can see the master-equinox feature ( see attached screenshot )
Comment 5 Kim Moir CLA 2011-02-17 11:17:31 EST
I don't understand why it matters.  You aren't trying to mirror those irrelevant build-time features.  Does b3 prevent you from mirroring content from the repository because of the repository validation error?
Comment 6 Bouchet Stéphane CLA 2011-02-17 12:06:11 EST
(In reply to comment #5)
> I don't understand why it matters.  You aren't trying to mirror those
> irrelevant build-time features.  Does b3 prevent you from mirroring content
> from the repository because of the repository validation error?

yes, this is exactly what b3 does. it verifies the provided repo entirely and then mirrors. 

BTW, i used exclusion rules to avoid the use of these features and it worked. 

I had to add helios repo, too, and remove some features again to make it work completely... 

i don't know how to deal with this problem by now :)
Comment 7 Kim Moir CLA 2011-02-17 13:07:41 EST
Okay, I'm going to close this bug.  I'm not going to modify the 3.6 repository for this issue.
Comment 8 Bouchet Stéphane CLA 2011-02-18 11:06:40 EST
kim,

founded the right way to use eclipse repo with b3. 

i must not use eclipse repo as contribution but as "validation repository".

looking at the documentation [1], i found the answer : 

"By default all contributed contents of a Mapped Repository will be verified for all Configurations defined for the aggregation."

so the use of the correct element (validation repository) will not try to resolve every feature.

[1] http://wiki.eclipse.org/Eclipse_b3/aggregator/manual#Validation_Repository