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

Bug 367766

Summary: Exception while trying to build the 3.8 M4 prototype
Product: [Technology] CBI Reporter: Paul Webster <pwebster>
Component: prototypeAssignee: CBI Dummy user <cbi.prototype-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kim.moir, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 372792    
Attachments:
Description Flags
Log of maven clean install none

Description Paul Webster CLA 2012-01-03 10:02:58 EST
Created attachment 208938 [details]
Log of maven clean install

I checked out the R3_tycho-monolith-build branch of the platform-aggregator to examine the 3.8 prototype.

To keep my directories separate, I used a different local maven repo.  Then I run:

mvn -f eclipse-parent/pom.xml clean install -Dmaven.repo.local=/var/tmp/lts/localrepo-R3

mvn clean install  -Dmaven.repo.local=/var/tmp/lts/localrepo-R3 -Dman.test.skip=true

I get the following exception (full log attached):


Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.tycho.p2.metadata.DependencyMetadataGenerator$OptionalResolutionAction
        at org.eclipse.tycho.extras.custombundle.CustomBundleP2MetadataProvider.setupProject(CustomBundleP2MetadataProvider.java:48)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver$1.run(P2TargetPlatformResolver.java:156)
        at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:113)

....
Caused by: java.lang.ClassNotFoundException: org.eclipse.tycho.p2.metadata.DependencyMetadataGenerator$OptionalResolutionAction
        at java.lang.Throwable.<init>(Throwable.java:80)
        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:38)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        ... 19 more
Comment 1 Paul Webster CLA 2012-01-04 13:17:33 EST
Fixed by Igor's changes re: http://dev.eclipse.org/mhonarc/lists/cbi-dev/msg00037.html

PW