Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356060 - ClassCastException during build using mavenResult="true"
Summary: ClassCastException during build using mavenResult="true"
Status: RESOLVED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 05:57 EDT by Dennis Huebner CLA
Modified: 2016-09-16 15:59 EDT (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 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.]