Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367766 - Exception while trying to build the 3.8 M4 prototype
Summary: Exception while trying to build the 3.8 M4 prototype
Status: RESOLVED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: prototype (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CBI Dummy user CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 372792
  Show dependency tree
 
Reported: 2012-01-03 10:02 EST by Paul Webster CLA
Modified: 2012-02-28 14:06 EST (History)
2 users (show)

See Also:


Attachments
Log of maven clean install (23.12 KB, text/plain)
2012-01-03 10:02 EST, Paul Webster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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