Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356060

Summary: ClassCastException during build using mavenResult="true"
Product: [Technology] CBI Reporter: Dennis Huebner <dennis.huebner>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dennis Huebner CLA 2011-08-29 05:57:54 EDT
I'm using
Eclipse SDK
Version: 3.7.0
Build id: I20110613-1736

b3 Aggregator Editor/Engine and Nexus indexer feature
0.2.0.v20110818-1257

Following b3aggr model file is created using b3aggr editor:
<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2011/aggregator/1.1.0" label="Xtext to Maven" mavenResult="true">
  <validationSets label="Xtext to Maven">
    <contributions description="Xtext Nightly p2 repository" label="Xtext">
      <repositories location="http://download.eclipse.org/modeling/tmf/xtext/updates/composite/nightly"/>
    </contributions>
    <validationRepositories location="http://download.eclipse.org/releases/helios"/>
  </validationSets>
  <configurations operatingSystem="macosx" windowSystem="cocoa" architecture="x86_64"/>
</aggregator:Aggregation>

Starting the build cause an CC exception: 

java.lang.ClassCastException: org.eclipse.b3.aggregator.impl.ValidationSetImpl cannot be cast to org.eclipse.b3.aggregator.Aggregation
	at org.eclipse.b3.aggregator.impl.ContributionImpl.getAllMavenMappings(ContributionImpl.java:499)
	at org.eclipse.b3.aggregator.engine.Builder.mavenInitializeMirroring(Builder.java:1402)
	at org.eclipse.b3.aggregator.engine.Builder.initializeArtifactMirroring(Builder.java:1009)
	at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:1654)
	at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildAggregationAction$1.run(AggregatorActionBarContributor.java:292)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 David Williams CLA 2016-09-16 15:59:38 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]